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.
This commit is contained in:
Ned Deily 2013-10-25 00:44:46 -07:00
parent 0203a80e1c
commit f84b531a12
2 changed files with 6 additions and 1 deletions

View File

@ -952,7 +952,7 @@ def buildPython():
"--with-universal-archs=%s " "--with-universal-archs=%s "
"%s " "%s "
"LDFLAGS='-g -L%s/libraries/usr/local/lib' " "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), shellQuote(os.path.join(SRCDIR, 'configure')), shellQuote(SDKPATH),
UNIVERSALARCHS, UNIVERSALARCHS,
(' ', '--with-computed-gotos ')[PYTHON_3], (' ', '--with-computed-gotos ')[PYTHON_3],

View File

@ -289,6 +289,11 @@ Build
problems in the Apple-supplied Tcl/Tk 8.5 shipped in OS X 10.6 problems in the Apple-supplied Tcl/Tk 8.5 shipped in OS X 10.6
and later releases. 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.
IDLE IDLE
---- ----