]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-126877: Fix the configure check for Tcl/Tk with optimizing compilers (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 11 Jul 2026 10:06:23 +0000 (12:06 +0200)
committerGitHub <noreply@github.com>
Sat, 11 Jul 2026 10:06:23 +0000 (10:06 +0000)
commita73c58ff91363a2d91ecce5b321edd510d15e5bf
tree1aa4028adaa4623f996e304d4a0630e204953ef5
parent7aecef448d5a33146cb4e4ad90466197f4603a2e
[3.13] gh-126877: Fix the configure check for Tcl/Tk with optimizing compilers (GH-153543) (GH-153555)

The check assigned the addresses of Tcl_Init() and Tk_Init() to unused
variables, which optimizing compilers can eliminate, so it linked even
when the libraries were missing.  Call the functions instead.
(cherry picked from commit ff0a9ae269fa38c21f01bdea1a7ff5d439c4f681)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Misc/NEWS.d/next/Build/2026-07-11-07-26-16.gh-issue-126877.Zt7Kq2.rst [new file with mode: 0644]
configure
configure.ac