Sfoglia il codice sorgente

ldconfig fix for FreeBSD, provided by deflected

rdb 16 anni fa
parent
commit
4d44270ca1
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 4 1
      makepanda/makepandacore.py

+ 4 - 1
makepanda/makepandacore.py

@@ -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]