summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/superlu-dist/package.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/superlu-dist/package.py b/var/spack/repos/builtin/packages/superlu-dist/package.py
index 546a35b6af..7f7a0f4db0 100644
--- a/var/spack/repos/builtin/packages/superlu-dist/package.py
+++ b/var/spack/repos/builtin/packages/superlu-dist/package.py
@@ -83,7 +83,9 @@ class SuperluDist(Package):
'F90FLAGS = -O2',
'LOADER = {0}'.format(self.spec['mpi'].mpif77),
'LOADOPTS =',
- 'CDEFS = -DAdd_'
+ 'CDEFS = %s' % ("-DNoChange"
+ if '%xl' in spec or '%xl_r' in spec
+ else "-DAdd_")
])
with open('make.inc', 'w') as fh: