2
0
mirror of git://github.com/lxc/lxc synced 2025-08-22 10:41:38 +00:00

build: only enable LTO for regular builds

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2022-01-20 09:42:28 +01:00
parent d0a1e9c44b
commit 919da35b03
No known key found for this signature in database
GPG Key ID: 91C61BC06578DCA2

View 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)