Skip to content

Commit

Permalink
Adds arch option to FFLAGS for OS X
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
eteq committed Feb 11, 2013
1 parent 6f17ac0 commit ee1579e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions buildosx
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
# sudo python setupegg.py develop

0 comments on commit ee1579e

Please sign in to comment.