summaryrefslogtreecommitdiffstats
path: root/unix/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 /unix/configure
parent2b394dc55dc6a4b0ceb55adede1d7c092db40c37 (diff)
parentea1fdc511d6bdd7ceee5b77dda8014d70a68c46a (diff)
downloadtcl-298a0ffc198f7efe71e3f98f4077eb19b1d681fe.zip
tcl-298a0ffc198f7efe71e3f98f4077eb19b1d681fe.tar.gz
tcl-298a0ffc198f7efe71e3f98f4077eb19b1d681fe.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 0678188..f48a252 100755
--- a/unix/configure
+++ b/unix/configure
@@ -719,6 +719,7 @@ LD_SEARCH_FLAGS
CC_SEARCH_FLAGS
LDFLAGS_OPTIMIZE
LDFLAGS_DEBUG
+CFLAGS_NOLTO
CFLAGS_WARNING
CFLAGS_OPTIMIZE
CFLAGS_DEBUG
@@ -7332,6 +7333,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
@@ -7370,6 +7406,7 @@ fi
+
printf "%s\n" "#define TCL_SHLIB_EXT \"${SHLIB_SUFFIX}\"" >>confdefs.h