libtool
[Top][All Lists]
Advanced

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

Re: C++ static constructors in libltdl modules [[Was Re: revised patch f


From: Alexandre Oliva
Subject: Re: C++ static constructors in libltdl modules [[Was Re: revised patch for glib compilation]]
Date: 22 Mar 2001 02:12:09 -0300
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley)

On Mar 20, 2001, "Gary V. Vaughan" <address@hidden> wrote:

>> anyways, in the case such code arrives, it may
>> only be called after successfull g_module_init(). that means for libtool,
>> there must be ways to supress automatic constructor initialization at
>> loading time and do them on demand later on.

> Yikes!  I'm Cc:ing the libtool list to record this information for
> posterity, and incase any of the KDE folks that lurk here know
> better than I do :-)

Instead of suppressing automatic constructors, we may just have a
dynamic constructor that sets some global variable to 1, which we test
in module_init() to decide whether dynamic constructors have already
been run.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  address@hidden, redhat.com}
CS PhD student at IC-Unicamp        address@hidden, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me



reply via email to

[Prev in Thread] Current Thread [Next in Thread]