I've been attempting a series of different compilations.
If I use gfortran-4.2.3 with no -arch flags:
/usr/local/bin/gfortran -Wall -undefined dynamic_lookup -lpython2.7 -bundle
I get the error:
ImportError: dlopen(pyradex/radex/radex.so, 2): no suitable image found. Did find:
pyradex/radex/radex.so: mach-o, but wrong architecture
If I try:
LDFLAGS='-arch i686 -arch x86_64 -undefined dynamic_lookup -lpython2.7 -bundle' python setup.py install_radex
there's a different error:
ImportError: dlopen(pyradex/radex/radex.so, 2): Symbol not found: _backrad_
Referenced from: /Users/adam/repos/pyradex/pyradex/radex/radex.so
Expected in: dynamic lookup
In fact, the only way I got it working with the regular, vanilla GCC-4.2.3 is:
FFLAGS='-arch i686 -arch x86_64 -fPIC' CFLAGS='-fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -O2' LDFLAGS='-arch i686 -arch x86_64 -undefined dynamic_lookup -bundle' python setup.py install_radex
Or, in other words, thoroughly ridiculous.
I've been attempting a series of different compilations.
If I use gfortran-4.2.3 with no -arch flags:
I get the error:
If I try:
there's a different error:
In fact, the only way I got it working with the regular, vanilla GCC-4.2.3 is:
Or, in other words, thoroughly ridiculous.