[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: g++/GNU ld/position independent libraries
From: |
Jason Merrill |
Subject: |
Re: g++/GNU ld/position independent libraries |
Date: |
Fri, 18 Jan 2002 13:33:12 +0000 |
User-agent: |
Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1 (i686-pc-linux-gnu) |
>>>>> "Bill" == Bill Hoffman <address@hidden> writes:
> At 12:56 PM 1/18/2002 +0000, Jason Merrill wrote:
>>> At what version of gcc did that stop happening?
>>
>> The gcc and c++ drivers have never been different in that respect; the only
>> differences are that the c++ driver treats .c files as C++ and links against
>> libstdc++.
>>
>> Jason
> I am almost sure I had a problem with that in the past. Anyway,
> c++ -shared -nostdlib
> and
> gcc -shared
> Should be exactly the same then right?
No. -nostdlib leaves off more than just libstdc++; in particular, it also
leaves off the startup files which are necessary for C++ static
constructors.
Jason