+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 ]:
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
;;