ld cache fix

This commit is contained in:
rdb 2009-09-21 10:52:08 +00:00
parent 8b362f6c88
commit ac4f2a3d37
1 changed files with 1 additions and 1 deletions

View File

@ -901,8 +901,8 @@ STATIC_CACHE = None
def GetLdCache():
# Returns a list of cached libraries, not prefixed by lib and not suffixed by .so* or .a!
global LD_CACHE
LD_CACHE = []
if (LD_CACHE == None):
LD_CACHE = []
if (LocateBinary("ldconfig") != None):
handle = os.popen(LocateBinary("ldconfig") + " -NXp")
result = handle.read().strip().split("\n")