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 | bd65c5a4809a5d0bdcc0e7d51ffd0847a0d1b955 (patch) | |
tree | 919f715054283df3feecea7843fb17bdda9f3926 /win/configure | |
parent | 91123b3522245110a7cc35c44c20b720e582a7cb (diff) | |
parent | 2c7cef48d22e6c7c75c610149041f653bb968d8e (diff) | |
download | tk-bd65c5a4809a5d0bdcc0e7d51ffd0847a0d1b955.zip tk-bd65c5a4809a5d0bdcc0e7d51ffd0847a0d1b955.tar.gz tk-bd65c5a4809a5d0bdcc0e7d51ffd0847a0d1b955.tar.bz2 |
workaround for mingw bug [http://comments.gmane.org/gmane.comp.gnu.mingw.user/41724]
Diffstat (limited to 'win/configure')
-rwxr-xr-x | win/configure | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/win/configure b/win/configure index 807e1ae..92ebdfb 100755 --- a/win/configure +++ b/win/configure @@ -3598,6 +3598,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 @@ -3726,6 +3728,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 @@ -3748,9 +3751,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 |