summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/linux-headers/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/linux-headers/package.py')
-rw-r--r--var/spack/repos/builtin/packages/linux-headers/package.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/linux-headers/package.py b/var/spack/repos/builtin/packages/linux-headers/package.py
index 6b0133dd75..c34cae029d 100644
--- a/var/spack/repos/builtin/packages/linux-headers/package.py
+++ b/var/spack/repos/builtin/packages/linux-headers/package.py
@@ -16,11 +16,11 @@ class LinuxHeaders(Package):
version('4.9.10', sha256='bd6e05476fd8d9ea4945e11598d87bc97806bbc8d03556abbaaf809707661525')
- def setup_environment(self, spack_env, run_env):
+ def setup_build_environment(self, env):
# This variable is used in the Makefile. If it is defined on the
# system, it can break the build if there is no build recipe for
# that specific ARCH
- spack_env.unset('ARCH')
+ env.unset('ARCH')
def install(self, spec, prefix):
make('headers_install', 'INSTALL_HDR_PATH={0}'.format(prefix))