From a67b2e2942bf8cbd3322cc699dd3da131b6ee30a Mon Sep 17 00:00:00 2001 From: Dan FitzGerald <38731008+djfitzgerald@users.noreply.github.com> Date: Thu, 14 Jun 2018 23:45:21 -0400 Subject: Use the name of the Fortran compiler to determine what name mangling (#8393) setting to use, instead of the spack compiler. %clang can use multiple Fortran compilers with different options, so we need to know what compiler is used in order to provide the correct options. --- var/spack/repos/builtin/packages/suite-sparse/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/suite-sparse/package.py b/var/spack/repos/builtin/packages/suite-sparse/package.py index 6b22e76f0e..be52030057 100644 --- a/var/spack/repos/builtin/packages/suite-sparse/package.py +++ b/var/spack/repos/builtin/packages/suite-sparse/package.py @@ -120,7 +120,7 @@ class SuiteSparse(Package): elif '%pgi' in spec: make_args += ['CFLAGS+=--exceptions'] - if '%xl' in spec or '%xl_r' in spec: + if spack_f77.endswith('xlf') or spack_f77.endswith('xlf_r'): make_args += ['CFLAGS+=-DBLAS_NO_UNDERSCORE'] # Intel TBB in SuiteSparseQR -- cgit v1.2.3-60-g2f50