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). David