Add configuration change for krell related products, they expect the dyninst includes in include/dyninst.
This commit is contained in:
parent
d1f127d8ef
commit
0591980cbe
1 changed files with 25 additions and 9 deletions
|
@ -38,6 +38,8 @@ class Dyninst(Package):
|
||||||
version('8.1.1', 'd1a04e995b7aa70960cd1d1fac8bd6ac',
|
version('8.1.1', 'd1a04e995b7aa70960cd1d1fac8bd6ac',
|
||||||
url="http://www.paradyn.org/release8.1/DyninstAPI-8.1.1.tgz")
|
url="http://www.paradyn.org/release8.1/DyninstAPI-8.1.1.tgz")
|
||||||
|
|
||||||
|
variant('krelloptions', default=False, description="build dyninst includes into include/dyninst.")
|
||||||
|
|
||||||
depends_on("libelf")
|
depends_on("libelf")
|
||||||
depends_on("libdwarf")
|
depends_on("libdwarf")
|
||||||
depends_on("boost@1.42:")
|
depends_on("boost@1.42:")
|
||||||
|
@ -48,15 +50,29 @@ def install(self, spec, prefix):
|
||||||
libdwarf = spec['libdwarf'].prefix
|
libdwarf = spec['libdwarf'].prefix
|
||||||
|
|
||||||
with working_dir('spack-build', create=True):
|
with working_dir('spack-build', create=True):
|
||||||
cmake('..',
|
# cbtf-krell and openspeedshop expect to reference dyninst/include, so adding include specification to that end
|
||||||
'-DBoost_INCLUDE_DIR=%s' % spec['boost'].prefix.include,
|
if '+krelloptions' in spec:
|
||||||
'-DBoost_LIBRARY_DIR=%s' % spec['boost'].prefix.lib,
|
cmake('..',
|
||||||
'-DBoost_NO_SYSTEM_PATHS=TRUE',
|
'-DINSTALL_INCLUDE_DIR=%s' % join_path(self.prefix.include, 'dyninst'),
|
||||||
'-DLIBELF_INCLUDE_DIR=%s' % join_path(libelf.include, 'libelf'),
|
'-DBoost_INCLUDE_DIR=%s' % spec['boost'].prefix.include,
|
||||||
'-DLIBELF_LIBRARIES=%s' % join_path(libelf.lib, 'libelf.so'),
|
'-DBoost_LIBRARY_DIR=%s' % spec['boost'].prefix.lib,
|
||||||
'-DLIBDWARF_INCLUDE_DIR=%s' % libdwarf.include,
|
'-DBoost_NO_SYSTEM_PATHS=TRUE',
|
||||||
'-DLIBDWARF_LIBRARIES=%s' % join_path(libdwarf.lib, 'libdwarf.so'),
|
'-DLIBELF_INCLUDE_DIR=%s' % join_path(libelf.include, 'libelf'),
|
||||||
*std_cmake_args)
|
'-DLIBELF_LIBRARIES=%s' % join_path(libelf.lib, 'libelf.so'),
|
||||||
|
'-DLIBDWARF_INCLUDE_DIR=%s' % libdwarf.include,
|
||||||
|
'-DLIBDWARF_LIBRARIES=%s' % join_path(libdwarf.lib, 'libdwarf.so'),
|
||||||
|
*std_cmake_args)
|
||||||
|
else:
|
||||||
|
cmake('..',
|
||||||
|
'-DBoost_INCLUDE_DIR=%s' % spec['boost'].prefix.include,
|
||||||
|
'-DBoost_LIBRARY_DIR=%s' % spec['boost'].prefix.lib,
|
||||||
|
'-DBoost_NO_SYSTEM_PATHS=TRUE',
|
||||||
|
'-DLIBELF_INCLUDE_DIR=%s' % join_path(libelf.include, 'libelf'),
|
||||||
|
'-DLIBELF_LIBRARIES=%s' % join_path(libelf.lib, 'libelf.so'),
|
||||||
|
'-DLIBDWARF_INCLUDE_DIR=%s' % libdwarf.include,
|
||||||
|
'-DLIBDWARF_LIBRARIES=%s' % join_path(libdwarf.lib, 'libdwarf.so'),
|
||||||
|
*std_cmake_args)
|
||||||
|
|
||||||
make()
|
make()
|
||||||
make("install")
|
make("install")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue