This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: g++/GNU ld/position independent libraries
>>>>> "Bill" == Bill Hoffman <bill.hoffman@kitware.com> 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