|
From: | William A. Hoffman |
Subject: | Re: g++/GNU ld/position independent libraries |
Date: | Fri, 18 Jan 2002 06:41:23 -0500 |
At 10:47 AM 1/18/2002 +0000, Jason Merrill wrote:
GCC shared libraries should always be built with gcc -shared. -nostdlib is wrong.
OK, I'll bite, how should they be built? I guess you would have to figure out if the libstdc++ was built shared or not then add or remove the -nostdlib? If libstdc++ is built static then you have to have the -nostdlib.
At least for gcc 2.9.5 this was the default installation for solaris.
I haven't heard about problems with Solaris shared libraries and GNU ld, though that doesn't mean there aren't any. You really want to use GNU as and ld for C++ if at all possible, so that duplicate template instantiations, vtables and such get discarded.
I think on solaris global Weak symbols are used anyway, and both linkers should get rid of duplicates right?
Jason
[Prev in Thread] | Current Thread | [Next in Thread] |