summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/gdrcopy/package.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/gdrcopy/package.py b/var/spack/repos/builtin/packages/gdrcopy/package.py
index de07c4ac8c..b71bf736db 100644
--- a/var/spack/repos/builtin/packages/gdrcopy/package.py
+++ b/var/spack/repos/builtin/packages/gdrcopy/package.py
@@ -26,4 +26,9 @@ class Gdrcopy(MakefilePackage):
def install(self, spec, prefix):
mkdir(prefix.include)
mkdir(prefix.lib64)
- make('lib_install', 'PREFIX={0}'.format(self.prefix))
+ if spec.satisfies('@2.2:'):
+ make('lib_install',
+ 'prefix={0}'.format(self.prefix))
+ else:
+ make('lib_install',
+ 'PREFIX={0}'.format(self.prefix))