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:
parent
3892b57244
commit
1eb01e7be5
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user