libsharp: add pic option (#28197)

This commit is contained in:
Nils Leif Fischer 2022-01-02 19:19:03 +01:00 committed by GitHub
parent c530672f0e
commit 4e16948a1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 @@ def configure_args(self):
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):