diff options
author | Owen Taylor <otaylor@redhat.com> | 2004-03-03 21:26:31 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2004-03-03 21:26:31 +0000 |
commit | d7681e7c34ed1a2838514c1bec0b949e8952e78c (patch) | |
tree | 29c907de3db943d9ed5a2b3c07c3938ba6a7a362 /configure.in | |
parent | b4768c3132376b1e7c935e11757e81e2111e6389 (diff) | |
download | gdk-pixbuf-d7681e7c34ed1a2838514c1bec0b949e8952e78c.tar.gz |
Strip out the "export-dynamic" libtool option from library link lines.
Wed Mar 3 16:00:10 2004 Owen Taylor <otaylor@redhat.com>
* configure.in: Strip out the "export-dynamic" libtool
option from library link lines. (#124687, James Henstridge)
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 2c4e8f082..922c6fb19 100644 --- a/configure.in +++ b/configure.in @@ -1418,6 +1418,26 @@ AC_SUBST(GTK_DEP_CFLAGS) AC_SUBST(GTK_DEBUG_FLAGS) AC_SUBST(GTK_XIM_FLAGS) +################################################################ +# Strip -export-dynamic from the link lines of various libraries +################################################################ + +# +# pkg-config --libs gmodule includes the "export_dynamic" flag, +# but this flag is only meaningful for executables. For libraries +# the effect is undefined; what it causes on Linux is that the +# export list from -export-symbols-regex is ignored and everything +# is exported +# +export_dynamic=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh` +if test -n "$export_dynamic"; then + GDK_PIXBUF_DEP_LIBS=`echo $GDK_PIXBUF_DEP_LIBS | sed -e "s/$export_dynamic//"` + GDK_PIXBUF_XLIB_DEP_LIBS=`echo $GDK_PIXBUF_XLIB_DEP_LIBS | sed -e "s/$export_dynamic//"` + GDK_DEP_LIBS=`echo $GDK_DEP_LIBS | sed -e "s/$export_dynamic//"` + GTK_DEP_LIBS=`echo $GTK_DEP_LIBS | sed -e "s/$export_dynamic//"` +fi + + ################################################## # Checks for gtk-doc and docbook-tools ################################################## |