summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorLucas Nesi <lucas31nesi@hotmail.com>2022-09-29 11:46:05 +0200
committerGitHub <noreply@github.com>2022-09-29 03:46:05 -0600
commitb37a1ec12b6941c5bce0cb61b763d643ef909032 (patch)
tree07dca573458d89cbd59b599274718628d8545db5 /var
parent9515998debc11dbe16f279d9a921e008d046145e (diff)
downloadspack-b37a1ec12b6941c5bce0cb61b763d643ef909032.tar.gz
spack-b37a1ec12b6941c5bce0cb61b763d643ef909032.tar.bz2
spack-b37a1ec12b6941c5bce0cb61b763d643ef909032.tar.xz
spack-b37a1ec12b6941c5bce0cb61b763d643ef909032.zip
fxt: add static variant (#32794)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/fxt/package.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/fxt/package.py b/var/spack/repos/builtin/packages/fxt/package.py
index 015aa4cacd..870c9e80e3 100644
--- a/var/spack/repos/builtin/packages/fxt/package.py
+++ b/var/spack/repos/builtin/packages/fxt/package.py
@@ -32,6 +32,8 @@ class Fxt(AutotoolsPackage):
description="Increase the value of FXT_MAX_PARAMS (to allow longer task names).",
)
+ variant("static", default=False, description="Compile as a static library")
+
depends_on("gawk", type="build")
depends_on("autoconf", type="build")
depends_on("automake", type="build")
@@ -56,6 +58,13 @@ class Fxt(AutotoolsPackage):
FxT Cannot configure."
)
+ def configure_args(self):
+ spec = self.spec
+ config_args = []
+ if spec.satisfies("+static"):
+ config_args.extend(["--enable-static=yes", "--enable-shared=no"])
+ return config_args
+
def flag_handler(self, name, flags):
if name == "cflags":
flags.append(self.compiler.cc_pic_flag)