From f6d3f498f06a8904dd49a82fc26567dd5a8ed60f Mon Sep 17 00:00:00 2001 From: Chris Packham Date: Mon, 30 May 2022 20:50:52 +1200 Subject: gcc: Disable zstd for canadian builds We don't currently bundle zstd so when performing a canadian build we need to tell GCC not to enable zstd support for lto otherwise it might decide to enable it based on the package being installed on the build machine. Fixes #1718 Signed-off-by: Chris Packham --- config/cc/gcc.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'config/cc') diff --git a/config/cc/gcc.in b/config/cc/gcc.in index bf3e766b..15d930bc 100644 --- a/config/cc/gcc.in +++ b/config/cc/gcc.in @@ -177,10 +177,9 @@ config CC_GCC_USE_LTO config CC_GCC_LTO_ZSTD tristate prompt "Support LTO compression with zstd" - default m + default m if !CANADIAN && !STATIC_TOOLCHAIN depends on CC_GCC_USE_LTO depends on GCC_10_or_later - depends on ! STATIC_TOOLCHAIN help Support zstd compression for LTO object files. This will require libzstd to be installed when using the toolchain -- cgit v1.2.3