From: Ned Deily Date: Sat, 19 Oct 2013 04:16:05 +0000 (-0700) Subject: Issue #19019: Change the OS X installer build script to use CFLAGS instead X-Git-Tag: v3.4.0a4~38 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=29eec66711d82c04a5ba2cde478b9da995dcbbdb;p=python 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. --- diff --git a/Mac/BuildScript/build-installer.py b/Mac/BuildScript/build-installer.py index b1f0a78d2c..ddb067d94f 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], diff --git a/Misc/NEWS b/Misc/NEWS index b986b30af2..d0f4eb9d74 100644 --- 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? ===================================