From fb5e6cda96bd9dcae9e4f62ec8b6b3e572a32743 Mon Sep 17 00:00:00 2001 From: Scott James Remnant Date: Thu, 6 Nov 2003 17:27:37 +0000 Subject: [PATCH] * m4/libtool.m4: Include James Henstridge's patch to fix the -export-symbols and -export-symbols-regex options under Linux. --- ChangeLog | 5 +++++ m4/libtool.m4 | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/ChangeLog b/ChangeLog index 104ea5c93..452d8fd95 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-10-31 Scott James Remnant + + * m4/libtool.m4: Include James Henstridge's patch to fix the + -export-symbols and -export-symbols-regex options under Linux. + 2003-10-31 Scott James Remnant * tests/demo-nopic.test: Skip test on hppa, which don't like diff --git a/m4/libtool.m4 b/m4/libtool.m4 index a355c790d..221844a7b 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -5251,6 +5251,26 @@ _LT_EOF _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; + linux*) + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + case `$LD -v 2>&1` in + *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... + *\ 2.11.*) ;; # other 2.11 versions + *) supports_anon_versioning=yes ;; + esac + if test "x$supports_anon_versioning" = xyes; then + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~$echo "local: *; };" >> $output_objdir/$libname.ver~$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + else + _LT_AC_TAGVAR(archive_expsym_cmds, $1)=$_LT_AC_TAGVAR(archive_cmds, $1) + fi + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' -- 2.47.2