Skip to content

Commit a0c7004

Browse files
authored
bpo-45847: Adapt macOS installer build to use new tkinter configure vars (GH-32328)
1 parent e06f920 commit a0c7004

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Mac/BuildScript/build-installer.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1157,11 +1157,11 @@ def buildPython():
11571157
(' ', '--without-ensurepip ')[PYTHON_3],
11581158
(' ', "--with-openssl='%s/libraries/usr/local'"%(
11591159
shellQuote(WORKDIR)[1:-1],))[PYTHON_3],
1160-
(' ', "--with-tcltk-includes='-I%s/libraries/usr/local/include'"%(
1160+
(' ', "--enable-optimizations --with-lto")[compilerCanOptimize()],
1161+
(' ', "TCLTK_CFLAGS='-I%s/libraries/usr/local/include'"%(
11611162
shellQuote(WORKDIR)[1:-1],))[internalTk()],
1162-
(' ', "--with-tcltk-libs='-L%s/libraries/usr/local/lib -ltcl8.6 -ltk8.6'"%(
1163+
(' ', "TCLTK_LIBS='-L%s/libraries/usr/local/lib -ltcl8.6 -ltk8.6'"%(
11631164
shellQuote(WORKDIR)[1:-1],))[internalTk()],
1164-
(' ', "--enable-optimizations --with-lto")[compilerCanOptimize()],
11651165
shellQuote(WORKDIR)[1:-1],
11661166
shellQuote(WORKDIR)[1:-1]))
11671167

0 commit comments

Comments
 (0)