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

ChangeLog
libtool.m4

index 72db9f76032ffac2ac84cd22fe607223816ae3b3..2e77eadb9a6c6aa0f22f03b688ee5e3561f666b2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-08-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * libtool.m4 [sun, CC] (AC_LIBTOOL_LANG_CXX_CONFIG): Move
+       postdeps override ..
+       (AC_LIBTOOL_POSTDEP_PREDEP): ..here, so they actually override.
+
 2005-08-18  Stepan Kasal  <kasal@ucw.cz>
 
        * ltmain.in (SP2NL, NL2SP): Simplify.
index 7fd1c0c2fcfec2658f47c531b79b801e22189ce5..575e22fdcdfa8dd85a153d97fa345397b6c21dd9 100644 (file)
@@ -3476,7 +3476,6 @@ case $host_os in
       CC*)
        # Sun C++ 4.2, 5.x and Centerline C++
         _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
-        _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
@@ -3737,6 +3736,18 @@ fi
 
 $rm -f confest.$objext
 
+# PORTME: override above test on systems where it is broken
+ifelse([$1],[CXX],
+[case $host_os in
+solaris*)
+  case $cc_basename in
+  CC*)
+    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
+    ;;
+  esac
+esac
+])
+
 case " $_LT_AC_TAGVAR(postdeps, $1) " in
 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
 esac