[linux-audio-dev] linking multiple .o plugins into a single .so library
Jesse Chappell
jesse at essej.net
Tue Jul 5 16:26:12 UTC 2005
Paul Davis wrote on Thu, 30-Jun-2005:
> 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))
> {
> }
The proper syntax is:
void __attribute__((constructor)) myinitfunction() {}
void __attribute__((destructor)) myfinifunction() {}
jlc
More information about the Linux-audio-dev
mailing list