libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -no-undefined vs gcc 4.6.0


From: Vincent Torri
Subject: Re: -no-undefined vs gcc 4.6.0
Date: Sat, 19 Mar 2011 23:15:33 +0100 (CET)



On Fri, 18 Mar 2011, Vincent Torri wrote:



On Fri, 18 Mar 2011, LRN wrote:

Since gcc 4.6.0 it is no longer possible to use LDFLAGS=-no-undefined
gcc now says something like this:
gcc.exe: error: unrecognized option '-no-undefined'
Before 4.6.0 it was possible to do that, and gcc said only this:
gcc.exe: unrecognized option '-no-undefined'
That is, unrecognized option was not considered a show-stopper, and everything worked just fine - the option, being part of LDFLAGS, eventually reached libtool, and libtool were taking the clue to disallow undefined symbols. Not anymore. Now i have to pass LDFLAGS=-Wl,-no-undefined. Which is ok from gcc' point of view, but libtool is unable to recognize this argument in such form and simply refuses to build shared libraries outright.
Not sure if it's a bug or a feature,

about the explanation, see the changes in gcc 4.6:

http://gcc.gnu.org/gcc-4.6/changes.html

(the second point of 'Caveats')

Vincent Torri



reply via email to

[Prev in Thread] Current Thread [Next in Thread]