]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
build: only enable LTO for regular builds
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 20 Jan 2022 08:42:28 +0000 (09:42 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Thu, 20 Jan 2022 11:12:59 +0000 (12:12 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
configure.ac

index 0ae5ad6fcb003efe2e40f48d122ed3ae1f4a06cd..e7f9d54f0a2550ecac2d668edfaf950a62533fd3 100644 (file)
@@ -500,7 +500,9 @@ if test "x$enable_fuzzers" = "xyes"; then
                CC_CHECK_FLAGS_APPEND([AM_CFLAGS],[CFLAGS],[ \
                        -DRUN_ON_OSS_FUZZ=1])
        fi
-else
+fi
+
+if test "x$enable_fuzzers" = "xno" -a "x$enable_sanitizers" = "xno"; then
        CC_CHECK_FLAGS_APPEND([AM_CFLAGS],[CFLAGS],[-flto=thin])
 fi
 AC_SUBST(AM_CFLAGS)