diff options
author | Cédric Chevalier <cedric.chevalier@cea.fr> | 2022-11-08 04:30:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-07 20:30:23 -0700 |
commit | 23eb2dc9d6cc8712872252c9cba94a876e0b6560 (patch) | |
tree | f96f437a05b35049906c6313f9b03502c7fa7ff3 /var | |
parent | 1a3415619ed8e250cf473efdfda1f0e2119d9c3d (diff) | |
download | spack-23eb2dc9d6cc8712872252c9cba94a876e0b6560.tar.gz spack-23eb2dc9d6cc8712872252c9cba94a876e0b6560.tar.bz2 spack-23eb2dc9d6cc8712872252c9cba94a876e0b6560.tar.xz spack-23eb2dc9d6cc8712872252c9cba94a876e0b6560.zip |
Add zstd support for elfutils (#33695)
* Add zstd support for elfutils
Not defining `+zstd` implies `--without-zstd` flag to configure.
This avoids automatic library detection and thus make the build only
depends on Spack installed dependencies.
* Use autotools helper "with_or_without"
* Revert use of with_or_without
Using `with_or_without()` with `variant` keyword does not seem to work.
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/elfutils/package.py | 4 |
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) |