gasnet: build with fPIC for shared lib consumers (#3962)
This commit is contained in:
parent
eba21b86bd
commit
97af407ae4
@ -40,7 +40,7 @@ class Gasnet(AutotoolsPackage):
|
|||||||
version('1.24.0', 'c8afdf48381e8b5a7340bdb32ca0f41a')
|
version('1.24.0', 'c8afdf48381e8b5a7340bdb32ca0f41a')
|
||||||
|
|
||||||
variant('ibv', default=False, description="Support InfiniBand")
|
variant('ibv', default=False, description="Support InfiniBand")
|
||||||
variant('mpi', default=False, description="Support MPI")
|
variant('mpi', default=True, description="Support MPI")
|
||||||
|
|
||||||
depends_on('mpi', when='+mpi')
|
depends_on('mpi', when='+mpi')
|
||||||
|
|
||||||
@ -48,11 +48,9 @@ def configure_args(self):
|
|||||||
args = [
|
args = [
|
||||||
# TODO: factor IB suport out into architecture description.
|
# TODO: factor IB suport out into architecture description.
|
||||||
"--enable-ibv" if '+ibv' in self.spec else '--disable-ibv',
|
"--enable-ibv" if '+ibv' in self.spec else '--disable-ibv',
|
||||||
"--enable-mpi" if '+mpi' in self.spec else '--disable-mpi',
|
|
||||||
"--enable-par",
|
"--enable-par",
|
||||||
"--enable-smp",
|
"--enable-smp",
|
||||||
"--enable-udp",
|
"--enable-udp",
|
||||||
"--enable-mpi-compat",
|
|
||||||
"--enable-smp-safe",
|
"--enable-smp-safe",
|
||||||
"--enable-segment-fast",
|
"--enable-segment-fast",
|
||||||
"--disable-aligned-segments",
|
"--disable-aligned-segments",
|
||||||
@ -60,5 +58,13 @@ def configure_args(self):
|
|||||||
# See the Legion webpage for details on when to/not to use.
|
# See the Legion webpage for details on when to/not to use.
|
||||||
"--disable-pshm",
|
"--disable-pshm",
|
||||||
"--with-segment-mmap-max=64MB",
|
"--with-segment-mmap-max=64MB",
|
||||||
|
# for consumers with shared libs
|
||||||
|
"CC=%s %s" % (spack_cc, self.compiler.pic_flag),
|
||||||
|
"CXX=%s %s" % (spack_cxx, self.compiler.pic_flag),
|
||||||
]
|
]
|
||||||
|
if '+mpi' in self.spec:
|
||||||
|
args.extend(['--enable-mpi', '--enable-mpi-compat', "MPI_CC=%s %s"
|
||||||
|
% (self.spec['mpi'].mpicc, self.compiler.pic_flag)])
|
||||||
|
else:
|
||||||
|
args.extend(['--disable-mpi', '--disable-mpi-compat'])
|
||||||
return args
|
return args
|
||||||
|
Loading…
Reference in New Issue
Block a user