From: Tim-Philipp Müller Date: Fri, 26 Oct 2007 18:39:03 +0000 (+0000) Subject: configure.ac: Ugly hack to put the (recently removed and non-portable, apparently) X-Git-Tag: RELEASE-0_10_15~33 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2b6e12aa2a69ea70b5b6f8313419a652d48a802d;p=platform%2Fupstream%2Fgstreamer.git 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. --- 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_*