]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* m4/libtool.m4 [sun, CC] (_LT_LANG_CXX_CONFIG): Move postdeps
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Thu, 18 Aug 2005 06:17:06 +0000 (06:17 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Thu, 18 Aug 2005 06:17:06 +0000 (06:17 +0000)
override ..
(_LT_SYS_HIDDEN_LIBDEPS): ..here.

ChangeLog
m4/libtool.m4

index d8548749799b3fdb31ba524fb194db1a85b485f7..9d5df9c0af64d8fea9f53d912505ddef5eddb74a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
 2005-08-18  Stepan Kasal  <kasal@ucw.cz>
 
        * config/general.m4sh (SP2NL, NL2SP): Simplify.
index 5270d4c13321c0ad319c3c83bb4c944039bb2061..44725b156c5c0fb4787fc1da6531003debdd4bb5 100644 (file)
@@ -5502,7 +5502,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~
@@ -5785,6 +5784,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