libsharp: add pic option (#28197)
This commit is contained in:
parent
c530672f0e
commit
4e16948a1f
@ -13,6 +13,7 @@ class Libsharp(AutotoolsPackage):
|
|||||||
|
|
||||||
variant('openmp', default=True, description='Build with openmp support')
|
variant('openmp', default=True, description='Build with openmp support')
|
||||||
variant('mpi', default=True, description='Build with MPI 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"
|
homepage = "https://github.com/Libsharp/libsharp"
|
||||||
git = "https://github.com/Libsharp/libsharp.git"
|
git = "https://github.com/Libsharp/libsharp.git"
|
||||||
@ -37,6 +38,8 @@ def configure_args(self):
|
|||||||
args.append("--disable-openmp")
|
args.append("--disable-openmp")
|
||||||
if '+mpi' not in self.spec:
|
if '+mpi' not in self.spec:
|
||||||
args.append("--disable-mpi")
|
args.append("--disable-mpi")
|
||||||
|
if '+pic' in self.spec:
|
||||||
|
args.append("--enable-pic")
|
||||||
return args
|
return args
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def install(self, spec, prefix):
|
||||||
|
Loading…
Reference in New Issue
Block a user