summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/elfutils/package.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/elfutils/package.py b/var/spack/repos/builtin/packages/elfutils/package.py
index b8909e88cb..a865d9785a 100644
--- a/var/spack/repos/builtin/packages/elfutils/package.py
+++ b/var/spack/repos/builtin/packages/elfutils/package.py
@@ -47,6 +47,7 @@ class Elfutils(AutotoolsPackage, SourcewarePackage):
# Libraries for reading compressed DWARF sections.
variant("bzip2", default=False, description="Support bzip2 compressed sections.")
variant("xz", default=False, description="Support xz (lzma) compressed sections.")
+ variant("zstd", default=False, description="Support zstd compressed sections.", when="@0.182:")
# Native language support from libintl.
variant("nls", default=True, description="Enable Native Language Support.")
@@ -70,6 +71,7 @@ class Elfutils(AutotoolsPackage, SourcewarePackage):
depends_on("bzip2", type="link", when="+bzip2")
depends_on("xz", type="link", when="+xz")
+ depends_on("zstd", type="link", when="+zstd")
depends_on("zlib", type="link")
depends_on("gettext", when="+nls")
depends_on("m4", type="build")
@@ -115,6 +117,8 @@ class Elfutils(AutotoolsPackage, SourcewarePackage):
else:
args.append("--without-lzma")
+ args.extend(self.with_or_without("zstd", activation_value="prefix"))
+
# zlib is required
args.append("--with-zlib=%s" % spec["zlib"].prefix)