created elf virtual package and updated dependent packages (#3317)
* created elf virtual package and updated dependent packages * added `hide_files` context manager to handle moving files.
This commit is contained in:

committed by
Todd Gamblin

parent
2ac343e92e
commit
604b75c1f9
@@ -62,8 +62,12 @@ class Extrae(Package):
|
||||
depends_on("boost")
|
||||
depends_on("libdwarf")
|
||||
depends_on("papi")
|
||||
depends_on("libelf")
|
||||
depends_on("elf", type="link")
|
||||
depends_on("libxml2")
|
||||
|
||||
# gettext dependency added to find -lintl
|
||||
# https://www.gnu.org/software/gettext/FAQ.html#integrating_undefined
|
||||
depends_on("gettext")
|
||||
depends_on("binutils+libiberty")
|
||||
|
||||
def install(self, spec, prefix):
|
||||
@@ -74,6 +78,16 @@ def install(self, spec, prefix):
|
||||
elif 'mvapich2' in spec:
|
||||
mpi = spec['mvapich2']
|
||||
|
||||
extra_config_args = []
|
||||
|
||||
# This was added due to configure failure
|
||||
# https://www.gnu.org/software/gettext/FAQ.html#integrating_undefined
|
||||
extra_config_args.append('LDFLAGS=-lintl')
|
||||
|
||||
if spec.satisfies("^dyninst@9.3.0:"):
|
||||
make.add_default_arg('CXXFLAGS=-std=c++11')
|
||||
extra_config_args.append('CXXFLAGS=-std=c++11')
|
||||
|
||||
configure("--prefix=%s" % prefix,
|
||||
"--with-mpi=%s" % mpi.prefix,
|
||||
"--with-unwind=%s" % spec['libunwind'].prefix,
|
||||
@@ -83,10 +97,11 @@ def install(self, spec, prefix):
|
||||
"--with-papi=%s" % spec['papi'].prefix,
|
||||
"--with-dyninst-headers=%s" % spec[
|
||||
'dyninst'].prefix.include,
|
||||
"--with-elf=%s" % spec['libelf'].prefix,
|
||||
"--with-elf=%s" % spec['elf'].prefix,
|
||||
"--with-xml-prefix=%s" % spec['libxml2'].prefix,
|
||||
"--with-binutils=%s" % spec['binutils'].prefix,
|
||||
"--with-dyninst-libs=%s" % spec['dyninst'].prefix.lib)
|
||||
"--with-dyninst-libs=%s" % spec['dyninst'].prefix.lib,
|
||||
*extra_config_args)
|
||||
|
||||
make()
|
||||
make("install", parallel=False)
|
||||
|
Reference in New Issue
Block a user