mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
ldconfig fix for FreeBSD, provided by deflected
This commit is contained in:
parent
5e46cc511c
commit
4d44270ca1
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user