diff --git a/var/spack/repos/builtin/packages/rhash/package.py b/var/spack/repos/builtin/packages/rhash/package.py index 5a5aaa9b8c..29ad1859cf 100644 --- a/var/spack/repos/builtin/packages/rhash/package.py +++ b/var/spack/repos/builtin/packages/rhash/package.py @@ -23,12 +23,12 @@ class Rhash(MakefilePackage): def build(self, spec, prefix): # Doesn't build shared libraries by default - make() + make('PREFIX={0}'.format(prefix)) if spec.satisfies('platform=darwin'): - make('-C', 'librhash', 'dylib') + make('PREFIX={0}'.format(prefix), '-C', 'librhash', 'dylib') else: - make('lib-shared') + make('PREFIX={0}'.format(prefix), 'lib-shared') def check(self): # Makefile has both `test` and `check` targets: