]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-126877: Fix the configure check for Tcl/Tk with optimizing compilers (GH-153543)
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 11 Jul 2026 09:49:12 +0000 (12:49 +0300)
committerGitHub <noreply@github.com>
Sat, 11 Jul 2026 09:49:12 +0000 (09:49 +0000)
commitff0a9ae269fa38c21f01bdea1a7ff5d439c4f681
tree4079ea1deb80e1e071bdaf88f8c4a92837319f46
parent77cb7560c07feed0d5b144c0c1735e1620c96f51
gh-126877: Fix the configure check for Tcl/Tk with optimizing compilers (GH-153543)

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.

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