superlu-mt: Add openmp flag to link command when using OpenMP (#19096)

Fix for #19095

When given +openmp, add the correct compiler openmp flag to the link
stage.  This seems to be required for %intel compilers.
I do this for all compilers, not just %intel, because it does not seem
to harm anything and might be beneficial for others (and just seems
'correct').
This commit is contained in:
Tom Payerle 2020-10-10 21:24:08 -04:00 committed by GitHub
parent 9c5f0cab1d
commit b3eb07cae0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,8 @@ def configure(self, spec):
'TMGLIB = libtmglib.a',
'MPLIB = {0}'.format(self.compiler.openmp_flag),
'CFLAGS = {0}'.format(self.compiler.openmp_flag),
'FFLAGS = {0}'.format(self.compiler.openmp_flag)
'FFLAGS = {0}'.format(self.compiler.openmp_flag),
'LOADOPTS += {0}'.format(self.compiler.openmp_flag)
])
elif '+pthread' in spec:
# POSIX threads