ldconfig fix for FreeBSD, provided by deflected

This commit is contained in:
rdb 2010-01-17 21:40:20 +00:00
parent 5e46cc511c
commit 4d44270ca1

View File

@ -1030,7 +1030,10 @@ def GetLibCache():
LD_CACHE = []
print "Generating library cache..."
if (LocateBinary("ldconfig") != None):
handle = os.popen(LocateBinary("ldconfig") + " -NXp")
if (sys.platform.startswith("freebsd")):
handle = os.popen(LocateBinary("ldconfig"))
else:
handle = os.popen(LocateBinary("ldconfig") + " -NXp")
result = handle.read().strip().split("\n")
for line in result:
lib = line.strip().split(" ", 1)[0]