summaryrefslogtreecommitdiff
path: root/Mac/BuildScript
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2013-10-25 00:44:46 -0700
committerNed Deily <nad@acm.org>2013-10-25 00:44:46 -0700
commitf84b531a128280e01d6cc8d722faac8d7c81b600 (patch)
tree6e08f9de0b9fd82d8955c7c75de2f92eec78d794 /Mac/BuildScript
parent0203a80e1c126d53da6637996669c3b4bb6ea3d8 (diff)
downloadcpython-git-f84b531a128280e01d6cc8d722faac8d7c81b600.tar.gz
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/BuildScript')
-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 de1a980a19..3e728e0955 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],