fix for lib detection

This commit is contained in:
rdb 2011-06-03 09:43:49 +00:00
parent 3b07f3a2b4
commit 553b009a24

View File

@ -1081,7 +1081,7 @@ def GetLibCache():
result = handle.read().strip().split("\n")
for line in result:
lib = line.strip().split(" ", 1)[0]
if (".so " in lib):
if (lib.endswith(".so") or ".so " in lib):
lib = lib.split(".so", 1)[0][3:]
LD_CACHE.append(lib)