Re: g++ and -nostdlib

2014-04-11 Thread Richard PALO
Le 09/11/13 07:44, Richard PALO a écrit : I believe Chuck is oriented in the right direction. A good example is with -fstack-protector. gcc/g++ knows how to link depending upon whether the platforms libc has SSP support or not. I doubt very much that libtool wants to figure out whether to add

Re: g++ and -nostdlib

2013-11-12 Thread Peter Rosin
[re-adding libtool@] On 2013-11-11 16:10, Bob Friesenhahn wrote: > On Mon, 11 Nov 2013, Peter Rosin wrote: Quite a lot of effort went into making this work the way it currently does. >> >> I realize that, but if it really works or not is a different question :-) > > Yes, of course. It i

Re: g++ and -nostdlib

2013-11-11 Thread Bob Friesenhahn
On Mon, 11 Nov 2013, Peter Rosin wrote: Quite a lot of effort went into making this work the way it currently does. I realize that, but if it really works or not is a different question :-) Yes, of course. It is obviously primarily "working" as demonstrated by the massive amount of software

Re: g++ and -nostdlib

2013-11-11 Thread Peter Rosin
On 2013-11-08 20:07, Charles Wilson wrote: > On 11/8/2013 1:49 PM, Bob Friesenhahn wrote: >> Isn't it because libtool wants to control the order of the linking and >> assure that all dependencies (including static) are tracked/known and >> applied at the correct times? It wants to assure that stat

Re: g++ and -nostdlib

2013-11-08 Thread Richard PALO
Le 08/11/13 20:07, Charles Wilson a écrit : On 11/8/2013 1:49 PM, Bob Friesenhahn wrote: Isn't it because libtool wants to control the order of the linking and assure that all dependencies (including static) are tracked/known and applied at the correct times? It wants to assure that static depe

Re: g++ and -nostdlib

2013-11-08 Thread Charles Wilson
On 11/8/2013 1:49 PM, Bob Friesenhahn wrote: Isn't it because libtool wants to control the order of the linking and assure that all dependencies (including static) are tracked/known and applied at the correct times? It wants to assure that static dependencies are linked into the dependent progra

g++ and -nostdlib

2013-11-08 Thread Peter Rosin
Hi! There seem to be a longstanding complaint that libtool is using -nostdlib when it links libraries using g++. It interferes with -pthread and I think I have also seen other issues. No one can give a satisfactory explanation why libtool does this, it seems like it is just the way it has always b

Re: g++ and -nostdlib

2013-11-08 Thread Bob Friesenhahn
On Fri, 8 Nov 2013, Peter Rosin wrote: Hi! There seem to be a longstanding complaint that libtool is using -nostdlib when it links libraries using g++. It interferes with -pthread and I think I have also seen other issues. No one can give a satisfactory explanation why libtool does this, it see