likwid: Fix build (#7244)
likwid uses the current directory when building the paths to its internal libraries. Spack overwrites PWD, causing likwid to not find hwloc.h.
This commit is contained in:
parent
65a1655022
commit
17772fcd43
@ -24,6 +24,7 @@
|
|||||||
##############################################################################
|
##############################################################################
|
||||||
from spack import *
|
from spack import *
|
||||||
import glob
|
import glob
|
||||||
|
import os
|
||||||
|
|
||||||
|
|
||||||
class Likwid(Package):
|
class Likwid(Package):
|
||||||
@ -105,5 +106,6 @@ def install(self, spec, prefix):
|
|||||||
spec['lua'].prefix.bin),
|
spec['lua'].prefix.bin),
|
||||||
'config.mk')
|
'config.mk')
|
||||||
|
|
||||||
|
env['PWD'] = os.getcwd()
|
||||||
make()
|
make()
|
||||||
make('install')
|
make('install')
|
||||||
|
Loading…
Reference in New Issue
Block a user