diff --git a/makepanda/makepandacore.py b/makepanda/makepandacore.py index 313add2381..944f3c4078 100644 --- a/makepanda/makepandacore.py +++ b/makepanda/makepandacore.py @@ -1030,6 +1030,7 @@ def GetLibCache(): LD_CACHE = [] print "Generating library cache..." if (LocateBinary("ldconfig") != None and not sys.platform.startswith("freebsd")): + handle = os.popen(LocateBinary("ldconfig") + " -NXp") result = handle.read().strip().split("\n") for line in result: lib = line.strip().split(" ", 1)[0]