suite-sparse: improve setting of the libs property (#44214)

on some distros it is in lib64/
This commit is contained in:
Mosè Giordano 2024-05-16 10:07:18 +01:00 committed by Harmen Stoppels
parent cbcfc7e10a
commit b5962613a0

View file

@ -309,5 +309,10 @@ def libs(self):
query_parameters = self.spec.last_query.extra_parameters query_parameters = self.spec.last_query.extra_parameters
comps = all_comps if not query_parameters else query_parameters comps = all_comps if not query_parameters else query_parameters
return find_libraries( return find_libraries(
["lib" + c for c in comps], root=self.prefix.lib, shared=True, recursive=False # Libraries may be installed under both `lib/` and `lib64/`,
# don't force searching under `lib/` only.
["lib" + c for c in comps],
root=self.prefix,
shared=True,
recursive=True,
) )