diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-09-27 09:42:27 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-09-27 09:42:27 (GMT) |
commit | 75b8c007b45089a87f9d222a78797c355a2ec289 (patch) | |
tree | 5177a21ecd97055a7a74ec7ea16b527ad6270aa1 /win/tcl.m4 | |
parent | d9f822a9fae321ccb51a6612b79c9d1cafd15534 (diff) | |
download | tk-75b8c007b45089a87f9d222a78797c355a2ec289.zip tk-75b8c007b45089a87f9d222a78797c355a2ec289.tar.gz tk-75b8c007b45089a87f9d222a78797c355a2ec289.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/tcl.m4')
-rw-r--r-- | win/tcl.m4 | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -634,7 +634,7 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [ if test "${GCC}" = "yes" ; then extra_cflags="-pipe" - extra_ldflags="-pipe" + extra_ldflags="-pipe -static-libgcc" AC_CACHE_CHECK(for mingw32 version of gcc, ac_cv_win32, AC_TRY_COMPILE([ @@ -665,7 +665,6 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [ extra_ldflags="$extra_ldflags -municode" else extra_cflags="$extra_cflags -DTCL_BROKEN_MAINARGS" - extra_ldflags="$extra_ldflags -static-libgcc" fi fi |