summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Willmore <frankwillmore@gmail.com>2020-07-14 18:36:18 -0500
committerGitHub <noreply@github.com>2020-07-14 16:36:18 -0700
commit710ff8d7ce30f4bc7aa337120adac377f4588805 (patch)
tree0cf35485cf2c3ea5b8dfff385b8dc5b7c2388db0
parent683881f912f0b80cafef44f980de982b244efb78 (diff)
downloadspack-710ff8d7ce30f4bc7aa337120adac377f4588805.tar.gz
spack-710ff8d7ce30f4bc7aa337120adac377f4588805.tar.bz2
spack-710ff8d7ce30f4bc7aa337120adac377f4588805.tar.xz
spack-710ff8d7ce30f4bc7aa337120adac377f4588805.zip
libyogrt (package): add variant to enable static builds (#17535)
-rw-r--r--var/spack/repos/builtin/packages/libyogrt/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libyogrt/package.py b/var/spack/repos/builtin/packages/libyogrt/package.py
index 3590193516..a1ed17b3f1 100644
--- a/var/spack/repos/builtin/packages/libyogrt/package.py
+++ b/var/spack/repos/builtin/packages/libyogrt/package.py
@@ -38,6 +38,9 @@ class Libyogrt(AutotoolsPackage):
conflicts('scheduler=lsf', when='@:1.22')
+ variant('static', default='False',
+ description="build static library")
+
def url_for_version(self, version):
if version < Version(1.21):
return "https://github.com/LLNL/libyogrt/archive/%s.tar.gz" % version
@@ -51,4 +54,7 @@ class Libyogrt(AutotoolsPackage):
if sched != "system":
args.append('--with-%s=%s' % (sched, self.spec[sched].prefix))
+ if '+static' in self.spec:
+ args.append('--enable-static=yes')
+
return args