浏览代码

makepanda: Create __panda section in deploy-stub on macOS

rdb 2 年之前
父节点
当前提交
3954d43292
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      makepanda/makepanda.py

+ 2 - 0
makepanda/makepanda.py

@@ -6117,6 +6117,8 @@ if PkgSkip("PYTHON") == 0:
         LibName('DEPLOYSTUB', "-Wl,--disable-new-dtags,-rpath,\\$ORIGIN")
         LibName('DEPLOYSTUB', "-Wl,-z,origin")
         LibName('DEPLOYSTUB', "-rdynamic")
+    elif GetTarget() == 'darwin':
+        LibName('DEPLOYSTUB', "-Wl,-sectcreate,__PANDA,__panda,/dev/null")
 
     PyTargetAdd('deploy-stub.exe', input='deploy-stub.obj')
     if GetTarget() == 'windows':