Selaa lähdekoodia

makepanda: Create __panda section in deploy-stub on macOS

rdb 2 vuotta sitten
vanhempi
sitoutus
3954d43292
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  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':