From: Ned Deily Date: Fri, 25 Oct 2013 07:46:02 +0000 (-0700) Subject: Issue #19019: Change the OS X installer build script to use CFLAGS instead X-Git-Tag: v3.3.3rc1~18 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4b7a02314933c4e96a194e4aba063cd8f89bc132;p=thirdparty%2FPython%2Fcpython.git 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 de1a980a1954..3e728e095524 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 0e6203b49158..fbe592419c9d 100644 --- 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? ===========================