From b3eb07cae06e200fe47b622353e951aced4ac10a Mon Sep 17 00:00:00 2001 From: Tom Payerle Date: Sat, 10 Oct 2020 21:24:08 -0400 Subject: 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'). --- var/spack/repos/builtin/packages/superlu-mt/package.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/superlu-mt/package.py b/var/spack/repos/builtin/packages/superlu-mt/package.py index 8f0e39d3aa..b3595428ab 100644 --- a/var/spack/repos/builtin/packages/superlu-mt/package.py +++ b/var/spack/repos/builtin/packages/superlu-mt/package.py @@ -57,7 +57,8 @@ class SuperluMt(Package): '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 -- cgit v1.2.3-70-g09d2