]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
libtool: Add SONAME to the so when exporting explicit symbols on Solaris
authorRichard Palo <richard.palo@baou.fr>
Wed, 19 Dec 2012 10:08:15 +0000 (11:08 +0100)
committerPeter Rosin <peda@lysator.liu.se>
Wed, 19 Dec 2012 10:08:15 +0000 (11:08 +0100)
m4/libtool.m (_LT_LANG_CXX_CONFIG) [Solaris] <archive_expsym_cmds>: Feed
-h $soname to the linker just as is done in archive_cmds.
THANKS: Update.

Copyright-paperwork-exempt: Yes
Signed-off-by: Peter Rosin <peda@lysator.liu.se>
THANKS
m4/libtool.m4

diff --git a/THANKS b/THANKS
index ef617e4a74c3fb11d43db9f3a17b998236bf083e..1259cbf29912f0ae95cefcf85d164d56336e5190 100644 (file)
--- a/THANKS
+++ b/THANKS
   Rainer Tammer                        tammer@tammer.net
   Ralf Menzel                  menzel@ls6.cs.uni-dortmund.de
   Richard B. Kreckel           kreckel@ginac.de
+  Richard Palo                 richard.palo@baou.fr
   Richard Purdie               rpurdie@rpsys.net
   Richard Sandiford            richards@transitive.com
   Robert Garron                        Robert.Garron@Access3000.net
index 3cf14e7feb08ce9572fcc3a5cb9d7bdb6729674e..205b1e34f19cdc568be22de2f06013d66e81fe7f 100644 (file)
@@ -6757,7 +6757,7 @@ if test yes != "$_lt_caught_CXX_error"; then
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
-                 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
+                 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
                # Commands to make compiler produce verbose output that lists
                # what "hidden" libraries, object files and flags are used when
@@ -6768,7 +6768,7 @@ if test yes != "$_lt_caught_CXX_error"; then
                # platform.
                _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
-                 $CC -G -nostdlib $wl-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
+                 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
                # Commands to make compiler produce verbose output that lists
                # what "hidden" libraries, object files and flags are used when