summaryrefslogtreecommitdiffstats
path: root/unix/configure
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-01-21 15:17:11 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-01-21 15:17:11 (GMT)
commit7a5690b2d839f0e51e17498b909c204302c197c2 (patch)
treef58c6d8a9681840ec0fe08a4f4ad87471ddcc7b9 /unix/configure
parent585ab49155c80f4820751f0e02f265ed88fdc8dc (diff)
parentfcee3d36fd756683f04be4a52137afe680009517 (diff)
downloadtk-7a5690b2d839f0e51e17498b909c204302c197c2.zip
tk-7a5690b2d839f0e51e17498b909c204302c197c2.tar.gz
tk-7a5690b2d839f0e51e17498b909c204302c197c2.tar.bz2
Merge 8.6
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 adb3504..e560f49 100755
--- a/unix/configure
+++ b/unix/configure
@@ -714,6 +714,7 @@ LD_SEARCH_FLAGS
CC_SEARCH_FLAGS
LDFLAGS_OPTIMIZE
LDFLAGS_DEBUG
+CFLAGS_NOLTO
CFLAGS_WARNING
CFLAGS_OPTIMIZE
CFLAGS_DEBUG
@@ -6140,6 +6141,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
@@ -6178,6 +6214,7 @@ fi
+
printf "%s\n" "#define TCL_SHLIB_EXT \"${SHLIB_SUFFIX}\"" >>confdefs.h