From 2b6e12aa2a69ea70b5b6f8313419a652d48a802d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 26 Oct 2007 18:39:03 +0000 Subject: [PATCH] configure.ac: Ugly hack to put the (recently removed and non-portable, apparently) 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 | 9 +++++++++ configure.ac | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/ChangeLog b/ChangeLog index f57211a..4bca7e1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2007-10-26 Tim-Philipp Müller + + * 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 * libs/gst/base/gstbasesink.c: (gst_base_sink_event): diff --git a/configure.ac b/configure.ac index caafbc3..b775047 100644 --- a/configure.ac +++ b/configure.ac @@ -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_* -- 2.7.4