Subject: Re: C++ q: constructors not called for classes in shared lib ?
To: Paul Kranenburg <pk@cs.few.eur.nl>
From: Todd Vierling <tv@pobox.com>
List: current-users
Date: 02/05/1999 11:21:01
On Fri, 5 Feb 1999, Paul Kranenburg wrote:

: One nag to get rid of is that `c++rt.o' must be compiled using the
: same `-fpic' or `-fPIC' switch as the library it gets linked with.

On systems where these flags do make that kind of difference.  SPARC,
m68k.... <sigh>

However, I believe there is a workaround for this in the GNU ld, and once we
finally switch to that, it's simply a matter of making c++rt0.o -fPIC....

: As such, the currently existing `/usr/lib/c++rt.o' is not of much use.
: Maybe it is simpler to just include a make rule to re-compile c++rt.c
: with each library as needed.

-- 
-- Todd Vierling (Personal tv@pobox.com; Bus. todd_vierling@xn.xerox.com)