diff --git a/var/spack/repos/builtin/packages/superlu-mt/package.py b/var/spack/repos/builtin/packages/superlu-mt/package.py index 8f0e39d3aaf..b3595428ab0 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 @@ 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