This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Static item constructors not called in shared libs (mips-sgi-irix-6.5/gcc-3.0.4)
- From: "Dave Williss" <dwilliss at microimages dot com>
- To: <gcc-bugs at gcc dot gnu dot org>
- Date: Wed, 5 Jun 2002 17:52:14 -0500
- Subject: Static item constructors not called in shared libs (mips-sgi-irix-6.5/gcc-3.0.4)
Constructors for C++ static data in a shared library is not
being called. This is on an mips-sgi-irix-6.5 with gcc 3.0.4
I checked the man page for ld and found a -cxx parameter
that you have to pass to make the magic work but it still
doesn't.
I noticed the SGI linker also has -init and -fini parameters
that let you specify functions to call when loading/unloading
the shared lib, but there doesn't seem to be anything I
can pass (__initialize or something). Is there something
else I need to do to make my shared library C++ aware?
-- Dave Williss
------
Meddle not in the affairs of dragons,
for you are crunchy and taste good with catsup