summaryrefslogtreecommitdiffstats
path: root/win/tcl.m4
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-09-23 20:04:54 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-09-23 20:04:54 (GMT)
commit234c7a84e3befe61f04019eb883e47a1b8e34f15 (patch)
tree0153ed9c6f3bf2e585c323ed5eb0a170ff783d25 /win/tcl.m4
parenta5c7396a4397e442e1d167f462483b9f6213375a (diff)
parentb54c2a5958b12875dc5a32cc1f09da20e23b087d (diff)
downloadtcl-234c7a84e3befe61f04019eb883e47a1b8e34f15.zip
tcl-234c7a84e3befe61f04019eb883e47a1b8e34f15.tar.gz
tcl-234c7a84e3befe61f04019eb883e47a1b8e34f15.tar.bz2
merge trunk
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 2853564..6724ea9 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])