Skip to content

[3.15] gh-126877: Fix the configure check for Tcl/Tk with optimizing compilers (GH-153543)#153553

Merged
serhiy-storchaka merged 1 commit into
python:3.15from
miss-islington:backport-ff0a9ae-3.15
Jul 11, 2026
Merged

[3.15] gh-126877: Fix the configure check for Tcl/Tk with optimizing compilers (GH-153543)#153553
serhiy-storchaka merged 1 commit into
python:3.15from
miss-islington:backport-ff0a9ae-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

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 ff0a9ae)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com
Co-authored-by: Claude Opus 4.8 noreply@anthropic.com

…ompilers (pythonGH-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.
(cherry picked from commit ff0a9ae269fa38c21f01bdea1a7ff5d439c4f681)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
@serhiy-storchaka serhiy-storchaka enabled auto-merge (squash) July 11, 2026 09:52
@serhiy-storchaka serhiy-storchaka merged commit 487ac27 into python:3.15 Jul 11, 2026
52 checks passed
@miss-islington miss-islington deleted the backport-ff0a9ae-3.15 branch July 11, 2026 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants