On Tue, Jul 28, 2009 at 1:36 PM, Tim Goetze<tim(a)quitte.de> wrote:
[Paul Davis]
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.
So will it link on OSX if I remove -nostartfiles?
i'd suggest copying what swh's makefile does, which is something like this:
gcc -flat_namespace -undefined suppress -o .libs/ringmod_1188.so
-bundle .libs/ringmod_1188.o -lm -march=i686 -nostartfiles
clearly, i was talking out of my rear end about -nostartfiles