On 10.4, Apple removed the deprecated dlopen() mechanism of using
_init() and _fini(). Instead, function attributes should be used.
These have been supported in gcc since at least 2.9x.
So instead of:
void _init() {}
void _fini() {}
you should use:
__attribute__((constructor)) void init() {}
__attribute__((destructor)) void fini() {}
Thanks,
Taybin
Show replies by date