summaryrefslogtreecommitdiffstats
path: root/win/configure
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-09-27 09:18:36 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-09-27 09:18:36 (GMT)
commit790f8f7114d0cc7b44cbaddc66e36c877c9c55b6 (patch)
tree7446b6301d870900cbe5cf5a5f15e2f67d558d26 /win/configure
parent38f8605a8d202951bbf792a4813b9b48a20910fb (diff)
downloadtcl-790f8f7114d0cc7b44cbaddc66e36c877c9c55b6.zip
tcl-790f8f7114d0cc7b44cbaddc66e36c877c9c55b6.tar.gz
tcl-790f8f7114d0cc7b44cbaddc66e36c877c9c55b6.tar.bz2
Workaround for [http://sourceforge.net/p/mingw/bugs/2065/|MinGW bug #2065].
Both MinGW and MinGW-w64 (32-bit) are affected. Even though Win64 is not affected, adding -static-libgcc doesn't harm there, and we don't want to distrubute additional dll's with MinGW-compiled Tcl anyway.
Diffstat (limited to 'win/configure')
-rwxr-xr-xwin/configure3
1 files changed, 1 insertions, 2 deletions
diff --git a/win/configure b/win/configure
index be9c98a..d09b588 100755
--- a/win/configure
+++ b/win/configure
@@ -3450,7 +3450,7 @@ echo "${ECHO_T}yes" >&6
if test "${GCC}" = "yes" ; then
extra_cflags="-pipe"
- extra_ldflags="-pipe"
+ extra_ldflags="-pipe -static-libgcc"
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
@@ -3579,7 +3579,6 @@ echo "${ECHO_T}$ac_cv_municode" >&6
extra_ldflags="$extra_ldflags -municode"
else
extra_cflags="$extra_cflags -DTCL_BROKEN_MAINARGS"
- extra_ldflags="$extra_ldflags -static-libgcc"
fi
fi