Fixed extrae's dependency on boost
This commit is contained in:
parent
84c5821f85
commit
18b880e638
1 changed files with 8 additions and 7 deletions
|
@ -59,10 +59,7 @@ class Extrae(AutotoolsPackage):
|
||||||
depends_on("mpi")
|
depends_on("mpi")
|
||||||
depends_on("libunwind")
|
depends_on("libunwind")
|
||||||
|
|
||||||
# TODO: replace this with an explicit list of components of Boost,
|
|
||||||
# for instance depends_on('boost +filesystem')
|
|
||||||
# See https://github.com/spack/spack/pull/22303 for reference
|
|
||||||
depends_on(Boost.with_default_variants)
|
|
||||||
depends_on("libdwarf")
|
depends_on("libdwarf")
|
||||||
depends_on("papi")
|
depends_on("papi")
|
||||||
depends_on("elf", type="link")
|
depends_on("elf", type="link")
|
||||||
|
@ -78,6 +75,10 @@ class Extrae(AutotoolsPackage):
|
||||||
|
|
||||||
variant("dyninst", default=False, description="Use dyninst for dynamic code installation")
|
variant("dyninst", default=False, description="Use dyninst for dynamic code installation")
|
||||||
depends_on("dyninst@:9", when="+dyninst")
|
depends_on("dyninst@:9", when="+dyninst")
|
||||||
|
# TODO: replace this with an explicit list of components of Boost,
|
||||||
|
# for instance depends_on('boost +filesystem')
|
||||||
|
# See https://github.com/spack/spack/pull/22303 for reference
|
||||||
|
depends_on(Boost.with_default_variants, when="+dyninst")
|
||||||
|
|
||||||
variant("papi", default=True, description="Use PAPI to collect performance counters")
|
variant("papi", default=True, description="Use PAPI to collect performance counters")
|
||||||
depends_on("papi", when="+papi")
|
depends_on("papi", when="+papi")
|
||||||
|
@ -99,7 +100,6 @@ class Extrae(AutotoolsPackage):
|
||||||
args = [
|
args = [
|
||||||
"--with-mpi=%s" % mpiroot,
|
"--with-mpi=%s" % mpiroot,
|
||||||
"--with-unwind=%s" % spec["libunwind"].prefix,
|
"--with-unwind=%s" % spec["libunwind"].prefix,
|
||||||
"--with-boost=%s" % spec["boost"].prefix,
|
|
||||||
"--with-dwarf=%s" % spec["libdwarf"].prefix,
|
"--with-dwarf=%s" % spec["libdwarf"].prefix,
|
||||||
"--with-elf=%s" % spec["elf"].prefix,
|
"--with-elf=%s" % spec["elf"].prefix,
|
||||||
"--with-xml-prefix=%s" % spec["libxml2"].prefix,
|
"--with-xml-prefix=%s" % spec["libxml2"].prefix,
|
||||||
|
@ -113,9 +113,10 @@ class Extrae(AutotoolsPackage):
|
||||||
)
|
)
|
||||||
|
|
||||||
args += (
|
args += (
|
||||||
["--with-dyninst=%s" % spec["dyninst"].prefix]
|
["--with-dyninst=%s" % spec["dyninst"].prefix,
|
||||||
|
"--with-boost=%s" % spec["boost"].prefix]
|
||||||
if "+dyninst" in self.spec
|
if "+dyninst" in self.spec
|
||||||
else ["--without-dyninst"]
|
else ["--without-dyninst", "--without-boost"]
|
||||||
)
|
)
|
||||||
|
|
||||||
args += (
|
args += (
|
||||||
|
|
Loading…
Reference in a new issue