Skip to content

Commit 0908c12

Browse files
committed
Add additional -static flag on Windows (avoids depending on MinGW libraries)
1 parent cfbb9f1 commit 0908c12

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tclconfig/tcl.m4

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4227,6 +4227,10 @@ AC_DEFUN([TEA_SETUP_COMPILER], [
42274227
# 2. Try to link the C++ libraries statically
42284228
AX_ADDTO_LINK_FLAGS([-static-libgcc])
42294229
AX_ADDTO_LINK_FLAGS([-static-libstdc++])
4230+
# on Windows, add -static to the linkage (for some MinGW libraries)
4231+
if test "${TEA_PLATFORM}" = "windows"; then
4232+
AX_ADDTO_LINK_FLAGS([-static])
4233+
fi
42304234
AC_LANG_POP([C++])
42314235
fi
42324236
#--------------------------------------------------------------------

0 commit comments

Comments
 (0)