diff options
| author | nijtmans@users.sourceforge.net <jan.nijtmans> | 2013-09-23 11:27:47 (GMT) |
|---|---|---|
| committer | nijtmans@users.sourceforge.net <jan.nijtmans> | 2013-09-23 11:27:47 (GMT) |
| commit | af3b72e020ec185c0c29b74576708d3b9177665d (patch) | |
| tree | 932250e0b9f266e822378ef03c0591ae6996729c | |
| parent | f4ca658f1b66a4032a28e9b404c7ded5202e90b2 (diff) | |
| parent | a8d62187cfd8cd8beabb1941a5bbbd895a68bf48 (diff) | |
| download | tcl-af3b72e020ec185c0c29b74576708d3b9177665d.zip tcl-af3b72e020ec185c0c29b74576708d3b9177665d.tar.gz tcl-af3b72e020ec185c0c29b74576708d3b9177665d.tar.bz2 | |
workaround for mingw bug [http://comments.gmane.org/gmane.comp.gnu.mingw.user/41724]
| -rwxr-xr-x | win/configure | 6 | ||||
| -rw-r--r-- | win/tcl.m4 | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/win/configure b/win/configure index e7c1329..be9c98a 100755 --- a/win/configure +++ b/win/configure @@ -3449,6 +3449,8 @@ echo "${ECHO_T}yes" >&6 # set various compiler flags depending on whether we are using gcc or cl if test "${GCC}" = "yes" ; then + extra_cflags="-pipe" + extra_ldflags="-pipe" 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 @@ -3577,6 +3579,7 @@ 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 @@ -3599,9 +3602,6 @@ echo $ECHO_N "checking compiler flags... $ECHO_C" >&6 MAKE_EXE="\${CC} -o \$@" LIBPREFIX="lib" - extra_cflags="$extra_cflags -pipe" - extra_ldflags="$extra_ldflags -pipe" - if test "${SHARED_BUILD}" = "0" ; then # static echo "$as_me:$LINENO: result: using static flags" >&5 @@ -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]) |
