summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/unzip/package.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/unzip/package.py b/var/spack/repos/builtin/packages/unzip/package.py
index 49477e1b5c..6abcd42248 100644
--- a/var/spack/repos/builtin/packages/unzip/package.py
+++ b/var/spack/repos/builtin/packages/unzip/package.py
@@ -14,9 +14,12 @@ class Unzip(MakefilePackage):
version('6.0', '62b490407489521db863b523a7f86375')
- conflicts('platform=cray', msg='Unzip does not currently build on Cray')
+ # The Cray cc wrapper doesn't handle the '-s' flag (strip) cleanly.
+ @when('platform=cray')
+ def patch(self):
+ filter_file(r'^LFLAGS2=.*', 'LFLAGS2=', join_path('unix', 'configure'))
- make_args = ['-f', 'unix/Makefile']
+ make_args = ['-f', join_path('unix', 'Makefile')]
build_targets = make_args + ['generic']
def url_for_version(self, version):