[SciPy-Dev] build issue on OS X 10.6 - fails on fftpack
Sun Feb 28 19:50:29 CST 2010
Ralf Gommers wrote:
> $ LDFLAGS="-lgfortran -arch x86_64" FFLAGS="-arch x86_64" python
Whenever you redefine one of the CFLAGS/FFLAGS/CXXFLAGS/LDFLAGS, it
*overwrites* the default value (contrary to the usual behavior of having
its value appended to the default value).
here, by overwriting LDFLAGS, you remove all the link options necessary
to build a bundle, and the linker believes you want to build an
executable (hence the missing main symbol message, and all the
unresolved symbols from libpython.dylib).
You can see which flags to use in the scipy paver script (note in
particular that the gfortran library should be linked statically, to
avoid adding a dependency on gfortran for scipy binaries - I used to run
the test suite in a Mac OS X chroot check this).
More information about the SciPy-Dev