Only link against libogg (and libm) if needed

Most of the programs don't use libogg or libm directly and should not
link to them (overlinking).

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
This commit is contained in:
Ulrich Klauer 2013-04-06 21:28:25 +02:00 committed by Erik de Castro Lopo
parent 5da86630be
commit b500183e95
7 changed files with 5 additions and 17 deletions

View File

@ -22,8 +22,6 @@ EXTRA_DIST = \
AM_CPPFLAGS = -I$(top_builddir) -I$(srcdir)/include -I$(top_srcdir)/include
noinst_PROGRAMS = example_c_decode_file
example_c_decode_file_LDADD = \
$(top_builddir)/src/libFLAC/libFLAC.la \
@OGG_LIBS@ \
-lm
$(top_builddir)/src/libFLAC/libFLAC.la
example_c_decode_file_SOURCES = main.c

View File

@ -50,7 +50,6 @@ flac_LDADD = \
$(top_builddir)/src/share/replaygain_analysis/libreplaygain_analysis.la \
$(top_builddir)/src/share/replaygain_synthesis/libreplaygain_synthesis.la \
$(top_builddir)/src/libFLAC/libFLAC.la \
@OGG_LIBS@ \
@LIBICONV@ \
-lm

View File

@ -47,8 +47,6 @@ metaflac_LDADD = \
$(top_builddir)/src/share/getopt/libgetopt.la \
$(top_builddir)/src/share/utf8/libutf8.la \
$(top_builddir)/src/libFLAC/libFLAC.la \
@OGG_LIBS@ \
@LIBICONV@ \
-lm
@LIBICONV@
CLEANFILES = metaflac.exe

View File

@ -60,7 +60,6 @@ libxmms_flac_la_LIBADD = \
$(top_builddir)/src/share/utf8/libutf8.la \
$(top_builddir)/src/libFLAC/libFLAC.la \
-L$(top_builddir)/src/libFLAC/.libs \
@OGG_LIBS@ \
@XMMS_LIBS@ \
@LIBICONV@
libxmms_flac_la_LDFLAGS = -module -avoid-version

View File

@ -26,8 +26,6 @@ test_cuesheet_SOURCES = \
test_cuesheet_LDADD = \
$(top_builddir)/src/share/grabbag/libgrabbag.la \
$(top_builddir)/src/share/replaygain_analysis/libreplaygain_analysis.la \
$(top_builddir)/src/libFLAC/libFLAC.la \
@OGG_LIBS@ \
-lm
$(top_builddir)/src/libFLAC/libFLAC.la
CLEANFILES = test_cuesheet.exe

View File

@ -26,8 +26,6 @@ test_picture_SOURCES = \
test_picture_LDADD = \
$(top_builddir)/src/share/grabbag/libgrabbag.la \
$(top_builddir)/src/libFLAC/libFLAC.la \
@OGG_LIBS@ \
-lm
$(top_builddir)/src/libFLAC/libFLAC.la
CLEANFILES = test_picture.exe

View File

@ -25,9 +25,7 @@ AM_CPPFLAGS = -I$(top_builddir) -I$(srcdir)/include -I$(top_srcdir)/include
noinst_PROGRAMS = test_seeking
test_seeking_LDADD = \
$(top_builddir)/src/libFLAC/libFLAC.la \
@OGG_LIBS@ \
-lm
$(top_builddir)/src/libFLAC/libFLAC.la
test_seeking_SOURCES = \
main.c