diff options
-rw-r--r-- | var/spack/repos/builtin/packages/fftw/package.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/fftw/package.py b/var/spack/repos/builtin/packages/fftw/package.py index 7a4ac28eb7..fa606cf3ce 100644 --- a/var/spack/repos/builtin/packages/fftw/package.py +++ b/var/spack/repos/builtin/packages/fftw/package.py @@ -25,6 +25,7 @@ class FftwBase(AutotoolsPackage): ) variant("openmp", default=False, description="Enable OpenMP support.") variant("mpi", default=True, description="Activate MPI support") + variant("shared", default=True, description="Build shared libraries") depends_on("mpi", when="+mpi") depends_on("llvm-openmp", when="%apple-clang +openmp") @@ -104,7 +105,9 @@ class FftwBase(AutotoolsPackage): def configure(self, spec, prefix): # Base options - options = ["--prefix={0}".format(prefix), "--enable-shared", "--enable-threads"] + options = ["--prefix={0}".format(prefix), "--enable-threads"] + options.extend(self.enable_or_disable("shared")) + if not self.compiler.f77 or not self.compiler.fc: options.append("--disable-fortran") if spec.satisfies("@:2"): |