diff options
Diffstat (limited to 'xmake/rules/python/module/xmake.lua')
| -rw-r--r-- | xmake/rules/python/module/xmake.lua | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/xmake/rules/python/module/xmake.lua b/xmake/rules/python/module/xmake.lua index 46d41be0b..c86d00523 100644 --- a/xmake/rules/python/module/xmake.lua +++ b/xmake/rules/python/module/xmake.lua @@ -42,27 +42,4 @@ rule("python.module") target:set("extension", ".so") end end - -- fix segmentation fault for macosx - -- @see https://github.com/xmake-io/xmake/issues/2177#issuecomment-1209398292 - if target:is_plat("macosx", "linux") then - if target:is_plat("macosx") then - target:add("shflags", "-undefined dynamic_lookup", {force = true}) - end - for _, pkg in pairs(target:pkgs()) do - local links = pkg:get("links") - if links then - local with_python = false - for _, link in ipairs(links) do - if link:startswith("python") then - with_python = true - break - end - end - if with_python then - pkg:set("links", nil) - pkg:set("linkdirs", nil) - end - end - end - end end) |
