openblas: .libs() uses self.libraries attribute (#48942)
Currently this is hardcoded to the same value as listed in the class definition. If one ever overrides this attribute, such as: ``` packages: openblas: package_attributes: libraries = [ 'libopenblaso64', ] ``` this patch will make sure that override also in the `spec['openblas'].libs()` call. (Which happens in `hypre`, likely others). ( see https://spack.readthedocs.io/en/latest/packages_yaml.html#assigning-package-attributes ) Thanks to becker33 for debugging help in Slack
This commit is contained in:
parent
87cc3280b6
commit
1a42bf043f
@ -322,7 +322,7 @@ def libs(self):
|
||||
spec = self.spec
|
||||
|
||||
# Look for openblas{symbol_suffix}
|
||||
name = ["libopenblas", "openblas"]
|
||||
name = self.libraries
|
||||
search_shared = bool(spec.variants["shared"].value)
|
||||
suffix = spec.variants["symbol_suffix"].value
|
||||
if suffix != "none":
|
||||
|
Loading…
Reference in New Issue
Block a user