Add an option to build libelf with Zstandard compression support.

Signed-off-by: Michael Tretter <[email protected]>
---
 rules/libelf.in   | 5 +++++
 rules/libelf.make | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/rules/libelf.in b/rules/libelf.in
index 0b4da9e682c8..fefe58219a0c 100644
--- a/rules/libelf.in
+++ b/rules/libelf.in
@@ -5,6 +5,7 @@ menuconfig LIBELF
        prompt "libelf                        "
        select ZLIB
        select XZ               if LIBELF_XZ
+       select ZSTD             if LIBELF_ZSTD
        help
          The libelf1 package provides a shared library which allows reading
          and writing ELF files on a high level.  Third party programs depend
@@ -16,6 +17,10 @@ config LIBELF_XZ
        bool
        prompt "xz compression support"
 
+config LIBELF_ZSTD
+       bool
+       prompt "zstd compression support"
+
 config LIBELF_LIBDW
        bool
        prompt "libdw"
diff --git a/rules/libelf.make b/rules/libelf.make
index 84e399e9f7a4..d36b4d67b372 100644
--- a/rules/libelf.make
+++ b/rules/libelf.make
@@ -62,7 +62,7 @@ LIBELF_CONF_OPT       := \
        --with-zlib \
        --without-bzlib \
        --$(call ptx/wwo, PTXCONF_LIBELF_XZ)-lzma \
-       --without-zstd \
+       --$(call ptx/wwo, PTXCONF_LIBELF_ZSTD)-zstd \
        --without-biarch
 
 LIBELF_ARCH := $(call remove_quotes,$(PTXCONF_ARCH_STRING))
-- 
2.39.5


Reply via email to