aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/cc/gcc.in3
-rw-r--r--config/comp_libs.in9
-rw-r--r--config/comp_libs/zstd.in1
3 files changed, 12 insertions, 1 deletions
diff --git a/config/cc/gcc.in b/config/cc/gcc.in
index d5b19c79..37c79efa 100644
--- a/config/cc/gcc.in
+++ b/config/cc/gcc.in
@@ -180,9 +180,10 @@ config CC_GCC_USE_LTO
config CC_GCC_LTO_ZSTD
tristate
prompt "Support LTO compression with zstd"
- default m if !CANADIAN && !STATIC_TOOLCHAIN
+ default m
depends on CC_GCC_USE_LTO
depends on GCC_10_or_later
+ select ZSTD_NEEDED
help
Support zstd compression for LTO object files. This will require
libzstd to be installed when using the toolchain
diff --git a/config/comp_libs.in b/config/comp_libs.in
index 6dd8099e..502e95a3 100644
--- a/config/comp_libs.in
+++ b/config/comp_libs.in
@@ -105,6 +105,11 @@ config ZLIB_NEEDED
bool "Build local zlib"
select COMP_LIBS_ZLIB
+config ZSTD_NEEDED
+ bool "Build local zstd"
+ default y if CANADIAN || CROSS_NATIVE
+ select COMP_LIBS_ZSTD
+
# FIXME remove these legacy knobs
config LIBICONV
def_bool y
@@ -150,4 +155,8 @@ config ZLIB
def_bool y
depends on ZLIB_NEEDED
+config ZSTD
+ def_bool y
+ depends on ZSTD_NEEDED
+
endmenu
diff --git a/config/comp_libs/zstd.in b/config/comp_libs/zstd.in
new file mode 100644
index 00000000..fe7655e0
--- /dev/null
+++ b/config/comp_libs/zstd.in
@@ -0,0 +1 @@
+# Zstd options