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:
Michael Kuhn 2018-03-06 18:07:37 +01:00 committed by Massimiliano Culpo
parent 65a1655022
commit 17772fcd43

View File

@ -24,6 +24,7 @@
##############################################################################
from spack import *
import glob
import os
class Likwid(Package):
@ -105,5 +106,6 @@ def install(self, spec, prefix):
spec['lua'].prefix.bin),
'config.mk')
env['PWD'] = os.getcwd()
make()
make('install')