Port-amiga archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Global constructors



On Mon, 5 Apr 1999, Klaus Gillarek wrote:

: someone said, that probably global constructors in shared libraries
: in NetBSD aren't properly executed. Someone else said, it has to do
: with the format of a.out. Is there a workaround (bugfix) in future
: NetBSD's for this problem. Does someone know an explanation for this
: problem? Does linking with c++rt0.o really help?

If you link your shlib with /usr/lib/c++rt0.o as the *first* object file on
the ld command line, you'll be fine.

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




Home | Main Index | Thread Index | Old Index