Fix build with LDFLAGS='-Wl,-z,defs'.
authorTim-Philipp Müller <tim@centricular.net>
Sat, 24 Feb 2007 22:52:48 +0000 (22:52 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Sat, 24 Feb 2007 22:52:48 +0000 (22:52 +0000)
Original commit message from CVS:
* configure.ac:
* ext/gsm/Makefile.am:
* ext/ladspa/Makefile.am:
* ext/wavpack/Makefile.am:
* gst/equalizer/Makefile.am:
* gst/filter/Makefile.am:
* gst/mve/Makefile.am:
* gst/nsf/Makefile.am:
* gst/replaygain/Makefile.am:
* gst/speed/Makefile.am:
Fix build with LDFLAGS='-Wl,-z,defs'.

ChangeLog
configure.ac
ext/gsm/Makefile.am
ext/ladspa/Makefile.am
ext/wavpack/Makefile.am
gst/equalizer/Makefile.am
gst/filter/Makefile.am
gst/mve/Makefile.am
gst/nsf/Makefile.am
gst/replaygain/Makefile.am
gst/speed/Makefile.am

index 02407492a3d74519bb405270b6f51976b58bb478..76b2cdd5cbaa42b508f68f1757e6259f2d0936ed 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+2007-02-24  Tim-Philipp Müller  <tim at centricular dot net>
+
+       * configure.ac:
+       * ext/gsm/Makefile.am:
+       * ext/ladspa/Makefile.am:
+       * ext/wavpack/Makefile.am:
+       * gst/equalizer/Makefile.am:
+       * gst/filter/Makefile.am:
+       * gst/mve/Makefile.am:
+       * gst/nsf/Makefile.am:
+       * gst/replaygain/Makefile.am:
+       * gst/speed/Makefile.am:
+         Fix build with LDFLAGS='-Wl,-z,defs'.
+
 2007-02-20  Sébastien Moutte  <sebastien@moutte.net>
 
        * sys/directsound/gstdirectsoundsink.c:
index 24a844f1abd400a67addb736a61bde9e9df3959c..d1b07f042254755932281eae910e1959863c2329 100644 (file)
@@ -143,6 +143,10 @@ AS_PATH_PYTHON([2.1])
 
 dnl *** checks for libraries ***
 
+dnl check for libm, for sin() etc.
+AC_CHECK_LIBM
+AC_SUBST(LIBM)
+
 dnl *** checks for header files ***
 
 dnl used by ext/dts
index e91ea73d7d19c2a98c011ac49188669cf459a85b..360f40f1fb37541626b159883e2c3903b91a5642 100644 (file)
@@ -1,9 +1,14 @@
 plugin_LTLIBRARIES = libgstgsm.la
 
 libgstgsm_la_SOURCES = gstgsm.c gstgsmenc.c gstgsmdec.c
-libgstgsm_la_CFLAGS = $(GST_CFLAGS) $(GST_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS)
-libgstgsm_la_LIBADD = $(GSM_LIBS) $(GST_PLUGINS_BASE_LIBS) \
-       -lgstaudio-@GST_MAJORMINOR@
+libgstgsm_la_CFLAGS = \
+       $(GST_CFLAGS) \
+       $(GST_PLUGINS_BASE_CFLAGS) \
+       $(GST_BASE_CFLAGS)
+libgstgsm_la_LIBADD = \
+       $(GSM_LIBS) \
+       $(GST_PLUGINS_BASE_LIBS) -lgstaudio-@GST_MAJORMINOR@ \
+       $(GST_BASE_LIBS)
 libgstgsm_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
 
 noinst_HEADERS = gstgsmenc.h gstgsmdec.h
index 6c1ea3b7a3a6ca080a72ed6c16819875b16d54cd..c3ded10a4d92b38e74fe469b835f2be9fc974cf1 100644 (file)
@@ -2,7 +2,7 @@ plugin_LTLIBRARIES = libgstladspa.la
 
 libgstladspa_la_SOURCES = gstsignalprocessor.c gstladspa.c search.c load.c
 libgstladspa_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CONTROLLER_CFLAGS) $(GST_CFLAGS)
-libgstladspa_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_MAJORMINOR)
+libgstladspa_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_MAJORMINOR) $(LIBM)
 libgstladspa_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
 
 noinst_HEADERS = gstsignalprocessor.h gstladspa.h utils.h
index 241e4dcfde54223ae2f6383dfbe2aae7899271db..f91ae2b2aad3a77427e29f28b62a5836be7b0174 100644 (file)
@@ -10,8 +10,8 @@ libgstwavpack_la_SOURCES = \
                                gstwavpackstreamreader.c \
                                md5.c
 
-libgstwavpack_la_CFLAGS = $(GST_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) $(WAVPACK_CFLAGS)
-libgstwavpack_la_LIBADD = $(GST_LIBS) $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_MAJORMINOR) $(WAVPACK_LIBS)
+libgstwavpack_la_CFLAGS = $(GST_CFLAGS) $(GST_BASE_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) $(WAVPACK_CFLAGS)
+libgstwavpack_la_LIBADD = $(GST_LIBS) $(GST_BASE_LIBS) $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_MAJORMINOR) $(WAVPACK_LIBS)
 libgstwavpack_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
 
 noinst_HEADERS = \
index 1ef12c94616ff3b24ebacd251e4eb12710432d9f..f4f2198c0ae2e4807064b2d61f9666ab334d1ad1 100644 (file)
@@ -1,8 +1,8 @@
 plugin_LTLIBRARIES = libgstequalizer.la
 
 libgstequalizer_la_SOURCES = gstiirequalizer.c gstiirequalizer.h
-libgstequalizer_la_CFLAGS = $(GST_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS)
-libgstequalizer_la_LIBADD = $(GST_LIBS) $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_MAJORMINOR)
+libgstequalizer_la_CFLAGS = $(GST_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS)
+libgstequalizer_la_LIBADD = $(GST_LIBS) $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_MAJORMINOR) $(GST_BASE_LIBS) $(LIBM)
 libgstequalizer_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
 
 noinst_HEADERS = gstiirequalizer.h
index 31e7a8d63e6cfcc7a1379a9aead9385d2f5728d0..d17e3d2cd4b675dd179623c036c3e9e785f69a88 100644 (file)
@@ -6,7 +6,8 @@ libgstfilter_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFL
 libgstfilter_la_LIBADD = \
        $(GST_BASE_LIBS) \
        $(GST_LIBS) \
-       $(GST_CONTROLLER_LIBS)
+       $(GST_CONTROLLER_LIBS) \
+       $(LIBM)
 
 libgstfilter_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
 
index 3b1a5a4cc20de85eb044ef60671567bcc3e62736..950d99569909d38e5f70f3484cbae80c294c8773 100644 (file)
@@ -1,7 +1,7 @@
 plugin_LTLIBRARIES = libgstmve.la
 
 libgstmve_la_CFLAGS = $(GST_BASE_CFLAGS) $(GST_CFLAGS)
-libgstmve_la_LIBADD = $(GST_BASE_LIBS) $(GST_LIBS)
+libgstmve_la_LIBADD = $(GST_BASE_LIBS) $(GST_LIBS) $(LIBM)
 libgstmve_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
 
 libgstmve_la_SOURCES = \
index d501f948779f79ce2ccaa2122bd451b5629f84b5..7596825445d430f3f6be0016b2a7b04342f20d72 100644 (file)
@@ -27,7 +27,7 @@ NOSEFART_INCLUDES=fmopl.h \
 libgstnsf_la_SOURCES = gstnsf.c $(NOSEFART_SOURCES)
 
 libgstnsf_la_CFLAGS = $(GST_CFLAGS) -DNSF_PLAYER
-libgstnsf_la_LIBADD = $(GST_LIBS)
+libgstnsf_la_LIBADD = $(GST_LIBS) $(LIBM)
 libgstnsf_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
 
 noinst_HEADERS = gstnsf.h $(NOSEFART_INCLUDES)
index eb44591e3c28d09c491fc967518c7842e009fe8e..d45236549db8a8c6c77a853c1f45daf6670fb06d 100644 (file)
@@ -4,7 +4,7 @@ libgstreplaygain_la_SOURCES = \
        gstrganalysis.c       \
        rganalysis.c
 libgstreplaygain_la_CFLAGS  = $(GST_CFLAGS) $(GST_BASE_CFLAGS)
-libgstreplaygain_la_LIBADD  = $(GST_LIBS) $(GST_BASE_LIBS)
+libgstreplaygain_la_LIBADD  = $(GST_LIBS) $(GST_BASE_LIBS) $(LIBM)
 libgstreplaygain_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
 
 # headers we need but don't want installed
index 00846d2877ac2dd3ea91fff145f07b4c0da883c6..bec45277aeff4ae1e0d75cc70f188b969cecd165 100644 (file)
@@ -3,7 +3,7 @@ plugin_LTLIBRARIES = libgstspeed.la
 
 libgstspeed_la_SOURCES = gstspeed.c
 libgstspeed_la_CFLAGS = $(GST_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS)
-libgstspeed_la_LIBADD = $(GST_LIBS) $(GST_PLUGINS_BASE_LIBS)
+libgstspeed_la_LIBADD = $(GST_LIBS) $(GST_PLUGINS_BASE_LIBS) $(LIBM)
 libgstspeed_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
 
 noinst_HEADERS = gstspeed.h