diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-01-21 15:46:16 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-01-21 15:46:16 (GMT) |
commit | 298a0ffc198f7efe71e3f98f4077eb19b1d681fe (patch) | |
tree | 8f7b7fb6876427a456eb6dfdd44127911a9bc96b /unix/tcl.m4 | |
parent | 2b394dc55dc6a4b0ceb55adede1d7c092db40c37 (diff) | |
parent | ea1fdc511d6bdd7ceee5b77dda8014d70a68c46a (diff) | |
download | tcl-298a0ffc198f7efe71e3f98f4077eb19b1d681fe.zip tcl-298a0ffc198f7efe71e3f98f4077eb19b1d681fe.tar.gz tcl-298a0ffc198f7efe71e3f98f4077eb19b1d681fe.tar.bz2 |
Merge 8.6
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r-- | unix/tcl.m4 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4 index 651d5fa..7854927 100644 --- a/unix/tcl.m4 +++ b/unix/tcl.m4 @@ -1855,6 +1855,19 @@ dnl # preprocessing tests use only CPPFLAGS. AC_DEFINE(HAVE_CAST_TO_UNION, 1, [Defined when compiler supports casting to union type.]) fi + hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -fno-lto" + AC_CACHE_CHECK(for working -fno-lto, + ac_cv_nolto, + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], + [ac_cv_nolto=yes], + [ac_cv_nolto=no]) + ) + CFLAGS=$hold_cflags + if test "$ac_cv_nolto" = "yes" ; then + CFLAGS_NOLTO="-fno-lto" + else + CFLAGS_NOLTO="" + fi AC_CHECK_HEADER(stdbool.h, [AC_DEFINE(HAVE_STDBOOL_H, 1, [Do we have <stdbool.h>?])],) @@ -1871,6 +1884,7 @@ dnl # preprocessing tests use only CPPFLAGS. AC_SUBST(CFLAGS_DEBUG) AC_SUBST(CFLAGS_OPTIMIZE) AC_SUBST(CFLAGS_WARNING) + AC_SUBST(CFLAGS_NOLTO) AC_SUBST(LDFLAGS) AC_SUBST(LDFLAGS_DEBUG) |