On Tue, Jul 28, 2009 at 1:29 PM, Tim Goetze<tim(a)quitte.de> wrote:
[Paul Davis]
[...]
and the cleanup function formerly known as fini()
as
__attribute__((destructor))
failure to do this pretty much guarantees plugin crashes on OS X and
other platforms that dropped init+fini support years ago.
I've added these attributes to _init() and _fini() sometime ago but
hopeful users of caps on OSX tell me linking the .so fails:
$ g++ -nostartfiles -O2 -ffast-math -funroll-loops -Wall -fPIC -DPIC
-shared -o caps.so [list of object files]
why are you using -nostartfiles? i know what your intent is, but its
unwise, i think.