Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2025-12-22
08:31 • Closed ticket [632710f6b7]: Check for -municode doesn't work on WSL plus... artifact: b409b525cc user: jan.nijtmans
08:30
(backport): Fix warnings about redefined macros in macOS tclPkgConfig.c Fix [632710f6b7]: Check for ... check-in: e180ce4bf2 user: jan.nijtmans tags: core-9-0-branch
2025-12-19
09:42 • Ticket [632710f6b7] Check for -municode doesn't work on WSL status still... artifact: 92c0e0c5b7 user: jan.nijtmans
09:40
Proposed fix for [632710f6b7]: Check for -municode doesn't work on WSL. Also add /HIGHENTROPYVA:NO t... closed check-in: f3f4ce0296 user: jan.nijtmans tags: bug-632710f6b7
08:40 • Ticket [632710f6b7] Check for -municode doesn't work on WSL status still... artifact: 9829d7538c user: jan.nijtmans
08:40 • New ticket [632710f6b7]. artifact: 55449f151d user: jan.nijtmans

Check for -municode doesn't work on WSL

Closed / Fixed632710f6b707f17cd6abb196bb43fbd6f4b30653Created 349 days agoUpdated 346 days ago
Descriptionwiki2025-12-19 08:40:16
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?

Referenced by2
  • e180ce4bf2(backport): Fix warnings about redefined macros in macOS tclPkgConfig.c Fix [632710f6b7]: Check for -municode doesn't work on WSL check-in2025-12-22 08:30:05
  • f3f4ce0296Proposed fix for [632710f6b7]: Check for -municode doesn't work on WSL. Also add /HIGHENTROPYVA:NO to NMAKE build check-in2025-12-19 09:40:32
jan.nijtmans Ticket [632710f6b7]: 3 changes [History diff]2025-12-19 08:40:29
jan.nijtmanswiki2025-12-19 09:42:52

Proposed fix [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.nijtmanswiki2025-12-22 08:31:22

Fixed [here]

Log in (anonymous is fine) to add a comment.