diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-09-23 12:54:37 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-09-23 12:54:37 (GMT) |
commit | fda5a92486b6dbcc21fa7a92de8cde9615f315a8 (patch) | |
tree | 919f715054283df3feecea7843fb17bdda9f3926 /win/tcl.m4 | |
parent | a8971e87514c789bdbdae34285478713a00a6e19 (diff) | |
parent | cd619dfd1b22f4313a03f048399fa4981ae43f83 (diff) | |
download | tk-fda5a92486b6dbcc21fa7a92de8cde9615f315a8.zip tk-fda5a92486b6dbcc21fa7a92de8cde9615f315a8.tar.gz tk-fda5a92486b6dbcc21fa7a92de8cde9615f315a8.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.m4 | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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]) |