]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* m4/libtool.m4: Include James Henstridge's patch to fix the
authorScott James Remnant <scott@netsplit.com>
Thu, 6 Nov 2003 17:27:37 +0000 (17:27 +0000)
committerScott James Remnant <scott@netsplit.com>
Thu, 6 Nov 2003 17:27:37 +0000 (17:27 +0000)
-export-symbols and -export-symbols-regex options under Linux.

ChangeLog
m4/libtool.m4

index 104ea5c931373a8d18117394492b65301921c9b0..452d8fd95ffbdd71821e02230a65a3a7bc810647 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-10-31  Scott James Remnant  <scott@netsplit.com>
+
+       * 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  <scott@netsplit.com>
 
        * tests/demo-nopic.test: Skip test on hppa, which don't like
index a355c790d5873aae1c067c5b49d577715eeba943..221844a7b38369c7c150719bb227079631732583 100644 (file)
@@ -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'