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.
This commit is contained in:
Satish Balay 2019-04-19 13:44:05 -05:00 committed by Peter Scheibel
parent 3892b57244
commit 1eb01e7be5

View File

@ -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: