summaryrefslogtreecommitdiff
path: root/Mac/BuildScript
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2013-10-25 00:46:02 -0700
committerNed Deily <nad@acm.org>2013-10-25 00:46:02 -0700
commit4ff89dee94d940caed4f1ebc4da9c7743d461648 (patch)
tree14d6c474d60d8e1c89fb8d10428ae128261ad698 /Mac/BuildScript
parentf42d4ea3007e85de019482e50cfa6f0ae875e843 (diff)
downloadcpython-4ff89dee94d940caed4f1ebc4da9c7743d461648.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],