[linux-audio-dev] linking multiple .o plugins into a single .so library

fons adriaensen fons.adriaensen at skynet.be
Tue Jul 5 20:25:36 UTC 2005


On Thu, Jun 30, 2005 at 02:31:04PM -0400, Paul Davis wrote:

(this only dropped into my mailbox today, for some reason)

> and if you want to be really portable, don't use _init() or _fini(),
> which are officially deprecated by gcc/glibc/ld.so, and use
> 
> void
> myinitfunction() __attributes__((constructor))
> {
> 
> }
> 
> void
> myfinifunction() __attributes__((destructor))
> {
> }

Looks very C++ish. Upon load, call all constructors for static
objects. Before unload, all destructors for the same. 

-- 
FA



More information about the Linux-audio-dev mailing list