]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] 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:22:02 +0000 (12:22 +0200)
committerGitHub <noreply@github.com>
Sat, 11 Jul 2026 10:22:02 +0000 (10:22 +0000)
commit487ac27295cab7c81a4afa06a4b49159d70835d3
tree26cca4b328477c1b67fccc3e0bed34154a866b8e
parentbb0720fb783e0ce493720ef4144f600290663ded
[3.15] gh-126877: Fix the configure check for Tcl/Tk with optimizing compilers (GH-153543) (GH-153553)

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