summaryrefslogtreecommitdiffstats
path: root/win/tcl.m4
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-09-23 11:27:47 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-09-23 11:27:47 (GMT)
commit1fce20754c8fc3ce3f4b822ee13b0772d674e9d1 (patch)
tree932250e0b9f266e822378ef03c0591ae6996729c /win/tcl.m4
parent9e6b54e433d9d2908605f52a434d242c7148818b (diff)
parent96fec1a88ca35bc13a18864d41f5e7cf56b4c58c (diff)
downloadtcl-1fce20754c8fc3ce3f4b822ee13b0772d674e9d1.zip
tcl-1fce20754c8fc3ce3f4b822ee13b0772d674e9d1.tar.gz
tcl-1fce20754c8fc3ce3f4b822ee13b0772d674e9d1.tar.bz2
workaround for mingw bug [http://comments.gmane.org/gmane.comp.gnu.mingw.user/41724]
Diffstat (limited to 'win/tcl.m4')
-rw-r--r--win/tcl.m46
1 files changed, 3 insertions, 3 deletions
diff --git a/win/tcl.m4 b/win/tcl.m4
index 7a1aa02..335494b 100644
--- a/win/tcl.m4
+++ b/win/tcl.m4
@@ -633,6 +633,8 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [
# set various compiler flags depending on whether we are using gcc or cl
if test "${GCC}" = "yes" ; then
+ extra_cflags="-pipe"
+ extra_ldflags="-pipe"
AC_CACHE_CHECK(for mingw32 version of gcc,
ac_cv_win32,
AC_TRY_COMPILE([
@@ -663,6 +665,7 @@ 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
@@ -684,9 +687,6 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [
MAKE_EXE="\${CC} -o \[$]@"
LIBPREFIX="lib"
- extra_cflags="$extra_cflags -pipe"
- extra_ldflags="$extra_ldflags -pipe"
-
if test "${SHARED_BUILD}" = "0" ; then
# static
AC_MSG_RESULT([using static flags])