diff options
-rw-r--r-- | var/spack/repos/builtin/packages/pexsi/package.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/var/spack/repos/builtin/packages/pexsi/package.py b/var/spack/repos/builtin/packages/pexsi/package.py index cfb188ab7c..aef5546c9f 100644 --- a/var/spack/repos/builtin/packages/pexsi/package.py +++ b/var/spack/repos/builtin/packages/pexsi/package.py @@ -62,14 +62,15 @@ class Pexsi(MakefilePackage): ('@STDCXX_LIB', ' '.join(self.compiler.stdcxx_libs)) ] + fldflags = '' if '@0.9.2' in self.spec: - substitutions.append( - ('@FLDFLAGS', '-Wl,--allow-multiple-definition') - ) - else: - substitutions.append( - ('@FLDFLAGS', '') - ) + fldflags += ' -Wl,--allow-multiple-definition' + + if ('^superlu +openmp' in self.spec + or '^openblas threads=openmp' in self.spec): + fldflags += ' ' + self.compiler.openmp_flag + + substitutions.append(('@FLDFLAGS', fldflags.lstrip())) template = join_path( os.path.dirname(inspect.getmodule(self).__file__), |