From ee1579e2815464f2d72cb67193930f99945ee2ab Mon Sep 17 00:00:00 2001 From: Erik Tollerud Date: Mon, 11 Feb 2013 17:59:28 -0500 Subject: [PATCH] Adds arch option to FFLAGS for OS X MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit While trying to build PyMC on OS X 10.8 (64-bit), I kept getting linking problems on import.  It appears that the fortran compiler also needs the ``-arch x86_64`` option to function correctly. --- buildosx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildosx b/buildosx index 3a40ad2dbd3..3ca7c802652 100755 --- a/buildosx +++ b/buildosx @@ -1,7 +1,7 @@ #!/bin/sh export MACOSX_DEPLOYMENT_TARGET=10.8 export CFLAGS="-arch x86_64" -export FFLAGS="-static -ff2c" +export FFLAGS="-static -ff2c -arch x86_64" export LDFLAGS="-Wall -undefined dynamic_lookup -bundle -arch x86_64" export PYTHONPATH="/Library/Python/2.7/site-packages/" export CC=gcc-4.2 @@ -10,4 +10,4 @@ rm -rf build python setupegg.py egg_info -d -r config_fc --fcompiler gfortran build #sudo python setup.py install python setupegg.py bdist_egg -# sudo python setupegg.py develop \ No newline at end of file +# sudo python setupegg.py develop