diff options
-rw-r--r-- | var/spack/repos/builtin/packages/fxt/package.py | 9 |
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) |