summaryrefslogtreecommitdiffstats
path: root/unix/configure
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-01-21 16:21:49 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-01-21 16:21:49 (GMT)
commita8e2e4df7ffb5875c42ccaaa949f3fb2325a94b8 (patch)
treed6d3021f24b4f71fb202e0843ecb5006691c64b9 /unix/configure
parent6320f60b9b89c71acd271c25137a7f170ada7b3a (diff)
parent7a5690b2d839f0e51e17498b909c204302c197c2 (diff)
downloadtk-a8e2e4df7ffb5875c42ccaaa949f3fb2325a94b8.zip
tk-a8e2e4df7ffb5875c42ccaaa949f3fb2325a94b8.tar.gz
tk-a8e2e4df7ffb5875c42ccaaa949f3fb2325a94b8.tar.bz2
Merge 8.7
Diffstat (limited to 'unix/configure')
-rwxr-xr-xunix/configure37
1 files changed, 37 insertions, 0 deletions
diff --git a/unix/configure b/unix/configure
index 519fe00..d5db049 100755
--- a/unix/configure
+++ b/unix/configure
@@ -724,6 +724,7 @@ LD_SEARCH_FLAGS
CC_SEARCH_FLAGS
LDFLAGS_OPTIMIZE
LDFLAGS_DEBUG
+CFLAGS_NOLTO
CFLAGS_WARNING
CFLAGS_OPTIMIZE
CFLAGS_DEBUG
@@ -6152,6 +6153,41 @@ printf "%s\n" "$tcl_cv_cast_to_union" >&6; }
printf "%s\n" "#define HAVE_CAST_TO_UNION 1" >>confdefs.h
fi
+ hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -fno-lto"
+ { 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
ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
if test "x$ac_cv_header_stdbool_h" = xyes
@@ -6190,6 +6226,7 @@ fi
+
printf "%s\n" "#define TCL_SHLIB_EXT \"${SHLIB_SUFFIX}\"" >>confdefs.h