summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/mpich/package.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/mpich/package.py b/var/spack/repos/builtin/packages/mpich/package.py
index 8fabb5718a..b4d132fe73 100644
--- a/var/spack/repos/builtin/packages/mpich/package.py
+++ b/var/spack/repos/builtin/packages/mpich/package.py
@@ -190,6 +190,17 @@ spack package at this time.''',
# see https://github.com/pmodels/mpich/pull/5031
conflicts('%clang@:7', when='@3.4:')
+ @run_after('configure')
+ def patch_cce(self):
+ # Configure misinterprets output from the cce compiler
+ # Patching configure instead should be possible, but a first
+ # implementation failed in obscure ways that were not worth
+ # tracking down when this worked
+ if self.spec.satisfies('%cce'):
+ filter_file('-L -L', '', 'config.lt', string=True)
+ filter_file('-L -L', '', 'libtool', string=True)
+ filter_file('-L -L', '', 'config.status', string=True)
+
@classmethod
def determine_version(cls, exe):
output = Executable(exe)(output=str, error=str)