]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4 (AC_LIBTOOL_POSTDEP_PREDEP) [ solaris ]:
authorAlbert Chin <china@thewrittenword.com>
Wed, 2 Aug 2006 13:35:37 +0000 (13:35 +0000)
committerPeter O'Gorman <peter@pogma.com>
Wed, 2 Aug 2006 13:35:37 +0000 (13:35 +0000)
Don't set $postdeps to "-lCstd -lCrun" if
"-library=stlport4" set in CXXFLAGS as stlport4 C++
library incompatible with Cstd C++ library. Use
'-library=Cstd -library=Crun' instead of '-lCstd -lCrun'.

ChangeLog
libtool.m4

index a0b660cac9883c7cabe3f56eba0c538d14c1055f..02a1b4490b3a92a58ffaadb23488622149c7ed97 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2006-08-01  Albert Chin <china@thewrittenword.com>
+
+       * libtool.m4 (AC_LIBTOOL_POSTDEP_PREDEP) [ solaris ]:
+       Don't set $postdeps to "-lCstd -lCrun" if
+       "-library=stlport4" set in CXXFLAGS as stlport4 C++
+       library incompatible with Cstd C++ library. Use
+       '-library=Cstd -library=Crun' instead of '-lCstd -lCrun'.
+
 2006-07-28  Eric Blake  <ebb9@byu.net>
 
        * libtool.m4 (AC_DEPLIBS_CHECK_METHOD): s/recognise/recognize/.
index e3aa54e581a92482ae5ac767b1b3079fbffcf665..6d037febb99120516750cf222b73906b618f67c9 100644 (file)
@@ -3921,10 +3921,22 @@ linux*)
 solaris*)
   case $cc_basename in
   CC*)
+    # 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
+
     # Adding this requires a known-good setup of shared libraries for
     # Sun compiler versions before 5.6, else PIC objects from an old
     # archive will be linked into the output, leading to subtle bugs.
-    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
+    if test "$solaris_use_stlport4" != yes; then
+      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
+    fi
     ;;
   esac
   ;;