aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorQuentin Boswank <62326551+QBos07@users.noreply.github.com>2023-02-04 15:23:40 +0000
committerChris Packham <judge.packham@gmail.com>2023-02-08 17:13:42 +1300
commit4cba29946029391a8eced017f65acb6407e0bf23 (patch)
tree7dd98667eab2d782222db7054b4bbb007286f208 /config
parent0ce5b27385e35d610317ee1baa9b38dfa564b1f0 (diff)
downloadcrosstool-ng-4cba29946029391a8eced017f65acb6407e0bf23.tar.gz
crosstool-ng-4cba29946029391a8eced017f65acb6407e0bf23.tar.bz2
crosstool-ng-4cba29946029391a8eced017f65acb6407e0bf23.zip
Add zstd to the companion libs
Add zstd to the companion libs witch allows to use lto zstd compression in a canadian or cross-native enviroment Signed-off-by: QBos07 <62326551+QBos07@users.noreply.github.com> Signed-off-by: Quentin Boswank <62326551+QBos07@users.noreply.github.com>
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