===================================================================
--- setup.py (revision 4187)
+++ setup.py (working copy)
X11 = ['/usr/X11'] * (not options.osx_frameworks)
if sys.platform == 'darwin':
- for prefix in ['/sw', '/opt/local', '/usr/local']:
+ for prefix in ['@PREFIX@', '/usr/local']:
if sys.executable.startswith(prefix):
- ext_comp_args += ["-ffast-math", "-funroll-loops", "-fcommon"]
+ ext_comp_args += ["-ffast-math", "-funroll-loops", "-fcommon", "-O3"]
# optimization currently causes a clang segfault on OS X 10.9 when
# compiling layer2/RepCylBond.cpp
- if sys.platform != 'darwin':
- ext_comp_args += ["-O3"]
+ if sys.platform == 'darwin':
+ ext_comp_args += ["-fno-strict-aliasing"]
return re.findall(r'_PyMOL_VERSION "(.*)"', open('layer0/Version.h').read())[0]