|
From: | Peter O'Gorman |
Subject: | Re: Support -library=stlport4 with Sun C++ compiler |
Date: | Tue, 1 Aug 2006 14:12:31 +0900 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |