From: Christian Brauner Date: Thu, 20 Jan 2022 08:42:28 +0000 (+0100) Subject: build: only enable LTO for regular builds X-Git-Tag: lxc-5.0.0~37^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7d3ef83800eeb20e9332ef468319a803857ea13;p=thirdparty%2Flxc.git build: only enable LTO for regular builds Signed-off-by: Christian Brauner --- diff --git a/configure.ac b/configure.ac index 0ae5ad6fc..e7f9d54f0 100644 --- a/configure.ac +++ b/configure.ac @@ -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)