From 1eb01e7be547e25dc6c8116413dd59f6b2caed6c Mon Sep 17 00:00:00 2001 From: Satish Balay Date: Fri, 19 Apr 2019 13:44:05 -0500 Subject: [PATCH] petsc: fix suitesparse configure options. (#11188) spec['dep'].libs.ld_flags can return system paths in some cases. This is a targeted fix for the petsc package when retrieving suite-sparse dependency libraries. --- var/spack/repos/builtin/packages/petsc/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/petsc/package.py b/var/spack/repos/builtin/packages/petsc/package.py index 8cc961d3617..c6cf666d96d 100644 --- a/var/spack/repos/builtin/packages/petsc/package.py +++ b/var/spack/repos/builtin/packages/petsc/package.py @@ -303,7 +303,7 @@ def install(self, spec, prefix): 'camd,amd,suitesparseconfig' options.extend([ '--with-suitesparse-include=%s' % spec[ss_spec].prefix.include, - '--with-suitesparse-lib=%s' % spec[ss_spec].libs.ld_flags, + '--with-suitesparse-lib=%s' % spec[ss_spec].libs.joined(), '--with-suitesparse=1' ]) else: