summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog14
-rw-r--r--configure.ac4
-rw-r--r--ext/gsm/Makefile.am11
-rw-r--r--ext/ladspa/Makefile.am2
-rw-r--r--ext/wavpack/Makefile.am4
-rw-r--r--gst/equalizer/Makefile.am4
-rw-r--r--gst/filter/Makefile.am3
-rw-r--r--gst/mve/Makefile.am2
-rw-r--r--gst/nsf/Makefile.am2
-rw-r--r--gst/replaygain/Makefile.am2
-rw-r--r--gst/speed/Makefile.am2
11 files changed, 37 insertions, 13 deletions
diff --git a/ChangeLog b/ChangeLog
index 02407492..76b2cdd5 100644
--- 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:
diff --git a/configure.ac b/configure.ac
index 24a844f1..d1b07f04 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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
diff --git a/ext/gsm/Makefile.am b/ext/gsm/Makefile.am
index e91ea73d..360f40f1 100644
--- a/ext/gsm/Makefile.am
+++ b/ext/gsm/Makefile.am
@@ -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
diff --git a/ext/ladspa/Makefile.am b/ext/ladspa/Makefile.am
index 6c1ea3b7..c3ded10a 100644
--- a/ext/ladspa/Makefile.am
+++ b/ext/ladspa/Makefile.am
@@ -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
diff --git a/ext/wavpack/Makefile.am b/ext/wavpack/Makefile.am
index 241e4dcf..f91ae2b2 100644
--- a/ext/wavpack/Makefile.am
+++ b/ext/wavpack/Makefile.am
@@ -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 = \
diff --git a/gst/equalizer/Makefile.am b/gst/equalizer/Makefile.am
index 1ef12c94..f4f2198c 100644
--- a/gst/equalizer/Makefile.am
+++ b/gst/equalizer/Makefile.am
@@ -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
diff --git a/gst/filter/Makefile.am b/gst/filter/Makefile.am
index 31e7a8d6..d17e3d2c 100644
--- a/gst/filter/Makefile.am
+++ b/gst/filter/Makefile.am
@@ -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)
diff --git a/gst/mve/Makefile.am b/gst/mve/Makefile.am
index 3b1a5a4c..950d9956 100644
--- a/gst/mve/Makefile.am
+++ b/gst/mve/Makefile.am
@@ -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 = \
diff --git a/gst/nsf/Makefile.am b/gst/nsf/Makefile.am
index d501f948..75968254 100644
--- a/gst/nsf/Makefile.am
+++ b/gst/nsf/Makefile.am
@@ -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)
diff --git a/gst/replaygain/Makefile.am b/gst/replaygain/Makefile.am
index eb44591e..d4523654 100644
--- a/gst/replaygain/Makefile.am
+++ b/gst/replaygain/Makefile.am
@@ -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
diff --git a/gst/speed/Makefile.am b/gst/speed/Makefile.am
index 00846d28..bec45277 100644
--- a/gst/speed/Makefile.am
+++ b/gst/speed/Makefile.am
@@ -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