summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>2005-08-18 06:16:46 +0000
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>2005-08-18 06:16:46 +0000
commit616808bb5d760a5dd1e780d1860bcf1e48c73596 (patch)
tree87a10fc7915c760e1abf0ac95d8f3154e4f5e320 /m4
parent7a93c73ba11633695e072a1cb8af8dafe01dcdb1 (diff)
downloadlibtool-616808bb5d760a5dd1e780d1860bcf1e48c73596.tar.gz
* m4/libtool.m4 [sun, CC] (_LT_LANG_CXX_CONFIG): Move postdeps
override .. (_LT_SYS_HIDDEN_LIBDEPS): ..here. * TODO: Updated.
Diffstat (limited to 'm4')
-rw-r--r--m4/libtool.m413
1 files changed, 12 insertions, 1 deletions
diff --git a/m4/libtool.m4 b/m4/libtool.m4
index 522f103c..84e18d92 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -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