]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
configure: don't enable LTO by default
authorTheodore Ts'o <tytso@mit.edu>
Sat, 18 Aug 2018 02:26:24 +0000 (22:26 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 18 Aug 2018 02:26:24 +0000 (22:26 -0400)
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>
configure
configure.ac

index 6244cb9e3237ad433b826c397424092641aac119..98456b7ff0d5826454340877e181eec8913f1ee8 100755 (executable)
--- a/configure
+++ b/configure
@@ -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
index 6c464ba7a56d2dfe1ef5531d5345270b69e831be..0c2b2421e1de33e62fffed51ef276ac212cee28d 100644 (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"