summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarmac <xiaojun2@hisilicon.com>2021-02-08 16:22:55 +0800
committerGitHub <noreply@github.com>2021-02-08 09:22:55 +0100
commit1bee682d675a3879465ca3b226a8966152414dc0 (patch)
tree3ff2608710281db6e7ff7654cf4939b48505eb87
parentca24b6c740fbd3c6207f2675724558677520430a (diff)
downloadspack-1bee682d675a3879465ca3b226a8966152414dc0.tar.gz
spack-1bee682d675a3879465ca3b226a8966152414dc0.tar.bz2
spack-1bee682d675a3879465ca3b226a8966152414dc0.tar.xz
spack-1bee682d675a3879465ca3b226a8966152414dc0.zip
pciutils: add a PREFIX parameter to make invocation (#21527)
-rw-r--r--var/spack/repos/builtin/packages/pciutils/package.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/pciutils/package.py b/var/spack/repos/builtin/packages/pciutils/package.py
index 8dbb649f1a..dac91808e6 100644
--- a/var/spack/repos/builtin/packages/pciutils/package.py
+++ b/var/spack/repos/builtin/packages/pciutils/package.py
@@ -18,6 +18,9 @@ class Pciutils(MakefilePackage):
variant('lib', default=False, description='Install libraries with headers')
+ def build(self, spec, prefix):
+ make('PREFIX={0}'.format(prefix))
+
def install(self, spec, prefix):
if '+lib' in spec:
make('install-lib', 'install', 'PREFIX={0}'.format(prefix))