Added shmem variant to Score-p build (#3024)

* Disable by default to fix builds on Centos 7
This commit is contained in:
sknigh 2017-02-18 13:54:57 -08:00 committed by Adam J. Stewart
parent 18334edf1a
commit 69b01c617e

View file

@ -61,6 +61,8 @@ class Scorep(Package):
depends_on("mpi")
depends_on("papi")
variant('shmem', default=False, description='Enable shmem tracing')
def install(self, spec, prefix):
configure = Executable(join_path(self.stage.source_path, 'configure'))
with working_dir('spack-build', create=True):
@ -72,6 +74,7 @@ def install(self, spec, prefix):
"--with-papi-header=%s" % spec['papi'].prefix.include,
"--with-papi-lib=%s" % spec['papi'].prefix.lib,
"--enable-shared",
"--without-shmem" if '~shmem' in spec else '',
"CFLAGS=-fPIC",
"CXXFLAGS=-fPIC"]
configure(*configure_args)