Skip to content

Commit 4b7a023

Browse files
committed
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.
1 parent 5b3582c commit 4b7a023

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Mac/BuildScript/build-installer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ def buildPython():
952952
"--with-universal-archs=%s "
953953
"%s "
954954
"LDFLAGS='-g -L%s/libraries/usr/local/lib' "
955-
"OPT='-g -O3 -I%s/libraries/usr/local/include' 2>&1"%(
955+
"CFLAGS='-g -I%s/libraries/usr/local/include' 2>&1"%(
956956
shellQuote(os.path.join(SRCDIR, 'configure')), shellQuote(SDKPATH),
957957
UNIVERSALARCHS,
958958
(' ', '--with-computed-gotos ')[PYTHON_3],

Misc/NEWS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,11 @@ Build
601601
problems in the Apple-supplied Tcl/Tk 8.5 shipped in OS X 10.6
602602
and later releases.
603603

604+
- Issue #19019: Change the OS X installer build script to use CFLAGS instead
605+
of OPT for special build options. By setting OPT, some compiler-specific
606+
options like -fwrapv were overridden and thus not used, which could result
607+
in broken interpreters when building with clang.
608+
604609

605610
What's New in Python 3.3.2?
606611
===========================

0 commit comments

Comments
 (0)