bindings: resolve symlinks to avoid duplicate/conflicting entries

On some systems /usr/lib64 is a symlink to /usr/lib, and because
libraries are searched for in both paths, the libraries will be found
twice although they only exist once.
This commit is contained in:
André Apitzsch
2025-02-18 14:46:23 +01:00
committed by Gabriel Ferreira
parent 028f18e6d5
commit e84022668a

View File

@@ -115,7 +115,7 @@ def _search_libraries() -> dict:
library_map[library_infix] = set()
# Append the directory
library_map[library_infix].add(library)
library_map[library_infix].add(os.path.realpath(library))
# Replace sets with lists
for key, values in library_map.items():