mirror of
git://git.savannah.gnu.org/libtool.git
synced 2024-11-21 01:40:57 +08:00
libtool: Add SONAME to the so when exporting explicit symbols on Solaris
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>
This commit is contained in:
parent
34fe402efa
commit
204b946050
1
THANKS
1
THANKS
@ -165,6 +165,7 @@
|
||||
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
|
||||
|
4
m4/libtool.m4
vendored
4
m4/libtool.m4
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user