summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2013-10-19 04:16:05 (GMT)
committerNed Deily <nad@acm.org>2013-10-19 04:16:05 (GMT)
commit29eec66711d82c04a5ba2cde478b9da995dcbbdb (patch)
tree0718d44c6ade12bef873d293f6823015d6493572 /Mac
parent87adb6ef38393932cbab3a1ec3769bafc7d740e2 (diff)
downloadcpython-29eec66711d82c04a5ba2cde478b9da995dcbbdb.zip
cpython-29eec66711d82c04a5ba2cde478b9da995dcbbdb.tar.gz
cpython-29eec66711d82c04a5ba2cde478b9da995dcbbdb.tar.bz2
Issue #19019: Change the OS X installer build script to use CFLAGS instead
of OPT for special build options. By setting OPT, some compiler-specific options like -fwrapv were overridden and thus not used, which could result in broken interpreters when building with clang.
Diffstat (limited to 'Mac')
-rwxr-xr-xMac/BuildScript/build-installer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mac/BuildScript/build-installer.py b/Mac/BuildScript/build-installer.py
index b1f0a78..ddb067d 100755
--- a/Mac/BuildScript/build-installer.py
+++ b/Mac/BuildScript/build-installer.py
@@ -952,7 +952,7 @@ def buildPython():
"--with-universal-archs=%s "
"%s "
"LDFLAGS='-g -L%s/libraries/usr/local/lib' "
- "OPT='-g -O3 -I%s/libraries/usr/local/include' 2>&1"%(
+ "CFLAGS='-g -I%s/libraries/usr/local/include' 2>&1"%(
shellQuote(os.path.join(SRCDIR, 'configure')), shellQuote(SDKPATH),
UNIVERSALARCHS,
(' ', '--with-computed-gotos ')[PYTHON_3],