]> granicus.if.org Git - python/commitdiff
Issue #19019: Change the OS X installer build script to use CFLAGS instead
authorNed Deily <nad@acm.org>
Sat, 19 Oct 2013 04:16:05 +0000 (21:16 -0700)
committerNed Deily <nad@acm.org>
Sat, 19 Oct 2013 04:16:05 +0000 (21:16 -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 b1f0a78d2ccfffc2d74c570bb813bcddaa4d9ddb..ddb067d94fc3544ff4c8b6504617608fa4ab99f6 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 b986b30af212be8ef2db591eeefc3545c3154d2a..d0f4eb9d74d3e481b01c01c012470824a4dcc191 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -196,6 +196,11 @@ Build
     3. -sysroot and -arch flags were unnecessarily duplicated
     4. there was no obvious way to configure an intel-32 only build.
 
+- 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.4.0 Alpha 3?
 ===================================