On Aug 1, 2006, at 1:38 PM, Albert Chin wrote:
Sun C++ supports two C++ libraries, -library=Cstd (default), and the
newer -library=stlport4. They are incompatible. Therefore, libtool's
use of -lCstd (equivalent to -library=Cstd) should not be assigned to
$postdeps if -library=stlport4 is in CXXFLAGS. Patch attached.
Patch against branch-1-5 and branch-2.0 attached.
This makes sense, but branch-2-0 is dead :-)
Before I apply it though, do we also want to check CXX for -
library=stlport4 ? Someone could do CXX='CC -library=stlport4' and
expect libtool not to add CStd etc. Can't we do
case " $CXX $CXXFLAGS " in
*" -library=stlport4 "*) solaris_use_stlport4=yes ;;
esac
To save the loop too?
Peter