]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] 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:08:13 +0000 (12:08 +0200)
committerGitHub <noreply@github.com>
Sat, 11 Jul 2026 10:08:13 +0000 (10:08 +0000)
commitec42ea44d2508a3e39e19b7bdc351434c84ab70c
tree3c14c24bc0ff02aa93a816d4a29bfc729adef01e
parent58330cf55746924225b99f7755fdf176c328b3dc
[3.14] gh-126877: Fix the configure check for Tcl/Tk with optimizing compilers (GH-153543) (GH-153554)

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