]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #19019: Change the OS X installer build script to use CFLAGS instead
authorNed Deily <nad@acm.org>
Fri, 25 Oct 2013 07:46:02 +0000 (00:46 -0700)
committerNed Deily <nad@acm.org>
Fri, 25 Oct 2013 07:46:02 +0000 (00:46 -0700)
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.

Mac/BuildScript/build-installer.py
Misc/NEWS

index de1a980a1954e89bf4efe76ed72b4d014c683500..3e728e095524dea84e2942a297153f7fb526ab0e 100755 (executable)
@@ -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],
index 0e6203b4915806cbc8a1d7c641977dd779ffb5ca..fbe592419c9d0607495d8b18ad1b2987ccfd3661 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -601,6 +601,11 @@ Build
   problems in the Apple-supplied Tcl/Tk 8.5 shipped in OS X 10.6
   and later releases.
 
+- 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.
+
 
 What's New in Python 3.3.2?
 ===========================