瀏覽代碼

install_name_tool -id as well

rdb 16 年之前
父節點
當前提交
ba6aacae91
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      makepanda/makepanda.py

+ 1 - 0
makepanda/makepanda.py

@@ -4868,6 +4868,7 @@ def MakeInstallerOSX():
             
             # Execute install_name_tool to make them reference an absolute path
             if (not os.path.islink(libname)):
+                oscmd("install_name_tool -id /Developer/Panda3D/lib/%s %s" % (base, libname), True)
                 oscmd("otool -L %s | grep .%s.dylib > %s/tmp/otool-libs.txt" % (libname, VERSION, GetOutputDir()), True)
                 for line in open(GetOutputDir()+"/tmp/otool-libs.txt", "r"):
                     if len(line.strip()) > 0: