Răsfoiți Sursa

another bugfix for osx

rdb 16 ani în urmă
părinte
comite
933899dca7
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      makepanda/makepandacore.py

+ 1 - 1
makepanda/makepandacore.py

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