|
From: | Marc Glisse |
Subject: | bug#9535: sunpro and -library=stdcxx4 |
Date: | Fri, 12 Dec 2014 16:56:22 +0100 (CET) |
User-agent: | Alpine 2.11 (DEB 23 2013-08-11) |
On Fri, 12 Dec 2014, Gary V. Vaughan wrote:
I applied this just now: http://git.savannah.gnu.org/cgit/libtool.git/commit/?id=b49ab52cb34a80aacf88698870649c7761e17c65
Thanks.
It doesn't change the logic of the 2006 patch, but it still seems wrong to me actually.
To me as well, but it seemed more likely to work if I only suggested a small change ;-)
Shouldn't the generated libtool script be figuring out whether to add -lCstd -lCrun every time it is called? Assuming the configure time CXX will be the only one ever used is not ideal; and, worse, CXXFLAGS are not stored in libtool in any circumstance, and yet configure determines the value of postdeps based on configure time CXXFLAGS contents. Am I missing something, or is it better to move this machinery into libtool itself?
I guess it would be better to have it either completely in libtool (figure it out for each invocation) or completely in autoconf (let it add -library=Cstd to LDFLAGS for shared libraries), or not at all and let users specify CXX="CC -library=Cstd"... I don't have a strong opinion there.
-- Marc Glisse
[Prev in Thread] | Current Thread | [Next in Thread] |