]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4 (AC_LIBTOOL_POSTDEP_PREDEP): Previous patch
authorRalf Menzel <menzel@ls6.cs.uni-dortmund.de>
Thu, 3 Aug 2006 14:31:47 +0000 (14:31 +0000)
committerPeter O'Gorman <peter@pogma.com>
Thu, 3 Aug 2006 14:31:47 +0000 (14:31 +0000)
applies to linux too, with Sun compiler.

ChangeLog
libtool.m4

index 02a1b4490b3a92a58ffaadb23488622149c7ed97..6b5d185ab042c39d4ea7a2594454d1b7766e06f0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-08-03  Ralf Menzel  <menzel@ls6.cs.uni-dortmund.de>
+
+       * libtool.m4 (AC_LIBTOOL_POSTDEP_PREDEP): Previous patch
+       applies to linux too, with Sun compiler.
+
 2006-08-01  Albert Chin <china@thewrittenword.com>
 
        * libtool.m4 (AC_LIBTOOL_POSTDEP_PREDEP) [ solaris ]:
index 6d037febb99120516750cf222b73906b618f67c9..60f275d4f6ef552aa7bc67945c60b0caddccdc03 100644 (file)
@@ -3913,7 +3913,19 @@ linux*)
   case `$CC -V 2>&1 | sed 5q` in
   *Sun\ C*)
     # Sun C++ 5.9
-    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
+    #
+    # The more standards-conforming stlport4 library is
+    # incompatible with the Cstd library. Avoid specifying
+    # it if it's in CXXFLAGS. Ignore libCrun as
+    # -library=stlport4 depends on it.
+    case " $CXX $CXXFLAGS " in
+    *" -library=stlport4 "*)
+      solaris_use_stlport4=yes
+      ;;
+    esac
+    if test "$solaris_use_stlport4" != yes; then
+      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
+    fi
     ;;
   esac
   ;;