diff options
-rw-r--r-- | var/spack/repos/builtin/packages/libsharp/package.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libsharp/package.py b/var/spack/repos/builtin/packages/libsharp/package.py index cacf6ad879..347b957e07 100644 --- a/var/spack/repos/builtin/packages/libsharp/package.py +++ b/var/spack/repos/builtin/packages/libsharp/package.py @@ -13,6 +13,7 @@ class Libsharp(AutotoolsPackage): variant('openmp', default=True, description='Build with openmp support') variant('mpi', default=True, description='Build with MPI support') + variant('pic', default=True, description='Generate position-independent code (PIC)') homepage = "https://github.com/Libsharp/libsharp" git = "https://github.com/Libsharp/libsharp.git" @@ -37,6 +38,8 @@ class Libsharp(AutotoolsPackage): args.append("--disable-openmp") if '+mpi' not in self.spec: args.append("--disable-mpi") + if '+pic' in self.spec: + args.append("--enable-pic") return args def install(self, spec, prefix): |