Tcl Source Code

View Ticket
Login
Ticket UUID: 632710f6b707f17cd6abb196bb43fbd6f4b30653
Title: Check for -municode doesn't work on WSL
Type: Bug Created on: 2025-12-19 08:40:16
Submitter: jan.nijtmans Assigned to: jan.nijtmans
Subsystem: - New Builtin Commands Severity: Minor
Priority: 5 Medium Last modified: 2025-12-22 08:31:22
Status: Closed Closed by: jan.nijtmans
Resolution: Fixed Closed on: 2025-12-22 08:31:22
Version: 9.0
Description:

Doing a Tcl/Tk build on Windows WSL, I see:

./configure --disable-shared --enable-64bit
....
checking for wine... no
checking for cross-compile version of gcc... yes
checking for mingw32 version of gcc... yes
checking for working -municode linker flag... no
checking for working -fno-lto... yes
checking if the linker understands --disable-high-entropy-va... no
checking if the compiler understands -finput-charset... yes
checking for working --enable-auto-image-base... no
checking compiler flags... using static flags
Somehow the linker flags -municode and --disable-high-entropy-va are not recognized, but clearly the linkes has those. If I manually edit the configure script to add those options, everything works.

So, why aren't the linker flags recognized?

User Comments:
jan.nijtmans added on 2025-12-19 09:42:52:

Proposed fix [f3f4ce0296820f18|here]

Since Tclsh doesn't compile will without -municode (missing symbol "WinMain") and all recent (10 years or so) gcc/clang compilers suppport it, the check is no longer necessary.


jan.nijtmans added on 2025-12-22 08:31:22:

Fixed [e180ce4bf22e3931|here]