From a8a1f629992df3a2143ddf7e43b35f959ca57678 Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Thu, 17 Jul 2025 07:15:30 +0000 Subject: Fix [https://core.tcl-lang.org/tk/info/06892c6e12|06892c6e12]: loading windows dll's in Cygwin doesn't work with high-entropy-va --- win/configure | 2 +- win/tcl.m4 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/win/configure b/win/configure index 4f44a03..95d2281 100755 --- a/win/configure +++ b/win/configure @@ -3413,7 +3413,7 @@ echo "${ECHO_T}yes" >&6 if test "${GCC}" = "yes" ; then extra_cflags="-pipe" - extra_ldflags="-pipe -static-libgcc" + extra_ldflags="-pipe -static-libgcc -Wl,--disable-high-entropy-va" echo "$as_me:$LINENO: checking for mingw32 version of gcc" >&5 echo $ECHO_N "checking for mingw32 version of gcc... $ECHO_C" >&6 if test "${ac_cv_win32+set}" = set; then diff --git a/win/tcl.m4 b/win/tcl.m4 index b1fa2c8..7c10c7d 100644 --- a/win/tcl.m4 +++ b/win/tcl.m4 @@ -635,7 +635,7 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [ if test "${GCC}" = "yes" ; then extra_cflags="-pipe" - extra_ldflags="-pipe -static-libgcc" + extra_ldflags="-pipe -static-libgcc -Wl,--disable-high-entropy-va" AC_CACHE_CHECK(for mingw32 version of gcc, ac_cv_win32, AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ -- cgit v0.12