configure.ac: Ugly hack to put the (recently removed and non-portable, apparently)
authorTim-Philipp Müller <tim@centricular.net>
Fri, 26 Oct 2007 18:39:03 +0000 (18:39 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Fri, 26 Oct 2007 18:39:03 +0000 (18:39 +0000)
Original commit message from CVS:
* configure.ac:
Ugly hack to put the (recently removed and non-portable, apparently)
-Wl,--export-dynamic back into libgstcheck's LDFLAGS when we're using
GNU ld, because without that 'make check' fails miserably on my debian
stable box.  Someone with more knowledge of linker intricacies and
portability issues than me fix this properly please.

ChangeLog
configure.ac

index f57211a..4bca7e1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2007-10-26  Tim-Philipp Müller  <tim at centricular dot net>
+
+       * configure.ac:
+         Ugly hack to put the (recently removed and non-portable, apparently)
+         -Wl,--export-dynamic back into libgstcheck's LDFLAGS when we're using
+         GNU ld, because without that 'make check' fails miserably on my debian
+         stable box.  Someone with more knowledge of linker intricacies and
+         portability issues than me fix this properly please.
+
 2007-10-25  Wim Taymans  <wim.taymans@gmail.com>
 
        * libs/gst/base/gstbasesink.c: (gst_base_sink_event):
index caafbc3..b775047 100644 (file)
@@ -526,6 +526,10 @@ GST_LIB_LDFLAGS="-export-symbols-regex \^[_]*\(gst_\|Gst\|GST_\).*"
 AC_SUBST(GST_LIB_LDFLAGS)
 dnl Version of the linker flags specifically for libgstcheck to support the boonky extra symbols it exports.
 GST_CHECK_LIB_LDFLAGS="-export-symbols-regex \^\([_]*\(gst_\|Gst\|GST_\).*\|check_\(debug\|mutex\|cond\)\|buffers\|mutex\|start_cond\|sync_cond\|thread_list\)$"
+dnl HACK: add non-portable --export-dynamic if we have GNU ld (needed on my debian stable, tpm)
+if test "x$ac_cv_prog_gnu_ld" = "xyes" -o "x$acl_cv_prog_gnu_ld" = "xyes" ; then
+  GST_CHECK_LIB_LDFLAGS="-Wl,--export-dynamic $GST_CHECK_LIB_LDFLAGS"
+fi
 AC_SUBST(GST_CHECK_LIB_LDFLAGS)
 
 dnl GST_OBJ_*