configure: don't enable LTO by default

Not all compilers (or versions of compilers) use the same LTO options
or behave the same way with LTO.  In particular, using clang and the
current LTO options cause the build to fail.  We should probably fix
up the configure script to handle Clang and LTO, but for now, we won't
enable LTO unless the user explicitly passes --enable-lto to the
configure script.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
This commit is contained in:
Theodore Ts'o 2018-08-17 22:26:24 -04:00
parent f7260c1974
commit 139a30928a
2 changed files with 2 additions and 2 deletions

2
configure vendored
View File

@ -13755,7 +13755,7 @@ esac
if test "${enable_lto+set}" = set; then :
enableval=$enable_lto;
else
enable_lto=probe
enable_lto=no
fi
if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then

View File

@ -1301,7 +1301,7 @@ dnl Enable LTO for all packages
dnl
AC_ARG_ENABLE([lto],
[ --enable-lto enable link time optimization],,
enable_lto=probe)
enable_lto=no)
if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
AC_MSG_CHECKING([if C compiler supports LTO])
OLD_CFLAGS="$CFLAGS"