summaryrefslogtreecommitdiffstats
path: root/win/configure
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-01-21 15:46:16 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-01-21 15:46:16 (GMT)
commit298a0ffc198f7efe71e3f98f4077eb19b1d681fe (patch)
tree8f7b7fb6876427a456eb6dfdd44127911a9bc96b /win/configure
parent2b394dc55dc6a4b0ceb55adede1d7c092db40c37 (diff)
parentea1fdc511d6bdd7ceee5b77dda8014d70a68c46a (diff)
downloadtcl-298a0ffc198f7efe71e3f98f4077eb19b1d681fe.zip
tcl-298a0ffc198f7efe71e3f98f4077eb19b1d681fe.tar.gz
tcl-298a0ffc198f7efe71e3f98f4077eb19b1d681fe.tar.bz2
Merge 8.6
Diffstat (limited to 'win/configure')
-rwxr-xr-xwin/configure36
1 files changed, 36 insertions, 0 deletions
diff --git a/win/configure b/win/configure
index 5ad3d2f..97a680b 100755
--- a/win/configure
+++ b/win/configure
@@ -744,6 +744,7 @@ TOMMATH_LIBS
ZLIB_LIBS
TOMMATH_DLL_FILE
ZLIB_DLL_FILE
+CFLAGS_NOLTO
CFLAGS_WARNING
CFLAGS_OPTIMIZE
CFLAGS_DEBUG
@@ -4288,6 +4289,40 @@ printf "%s\n" "$ac_cv_municode" >&6; }
else
extra_cflags="$extra_cflags -DTCL_BROKEN_MAINARGS"
fi
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working -fno-lto" >&5
+printf %s "checking for working -fno-lto... " >&6; }
+if test ${ac_cv_nolto+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ ac_cv_nolto=yes
+else $as_nop
+ ac_cv_nolto=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nolto" >&5
+printf "%s\n" "$ac_cv_nolto" >&6; }
+ CFLAGS=$hold_cflags
+ if test "$ac_cv_nolto" = "yes" ; then
+ CFLAGS_NOLTO="-fno-lto"
+ else
+ CFLAGS_NOLTO=""
+ fi
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler flags" >&5
@@ -4792,6 +4827,7 @@ printf "%s\n" "#define HAVE_CAST_TO_UNION 1" >>confdefs.h
+
# Cross-compiling
case ${host_alias} in
*mingw32*)