* m4/libtool.m4 [sun, CC] (_LT_LANG_CXX_CONFIG): Move postdeps

override ..
(_LT_SYS_HIDDEN_LIBDEPS): ..here.
* TODO: Updated.
This commit is contained in:
Ralf Wildenhues 2005-08-18 06:16:46 +00:00
parent 7a93c73ba1
commit 616808bb5d
2 changed files with 19 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2005-08-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* m4/libtool.m4 [sun, CC] (_LT_LANG_CXX_CONFIG): Move postdeps
override ..
(_LT_SYS_HIDDEN_LIBDEPS): ..here.
* TODO: Updated.
2005-08-18 Stepan Kasal <kasal@ucw.cz>
* config/general.m4sh (SP2NL, NL2SP): Simplify.

13
m4/libtool.m4 vendored
View File

@ -5551,7 +5551,6 @@ if test "$_lt_caught_CXX_error" != yes; then
CC*)
# Sun C++ 4.2, 5.x and Centerline C++
_LT_TAGVAR(archive_cmds_need_lc,$1)=yes
_LT_TAGVAR(postdeps,$1)='-lCstd -lCrun'
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
@ -5834,6 +5833,18 @@ fi
$RM -f confest.$objext
# PORTME: override above test on systems where it is broken
m4_if([$1], [CXX],
[case $host_os in
solaris*)
case $cc_basename in
CC*)
_LT_TAGVAR(postdeps,$1)='-lCstd -lCrun'
;;
esac
esac
])
case " $_LT_TAGVAR(postdeps, $1) " in
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
esac