summaryrefslogtreecommitdiff
path: root/xmake/rules/python
diff options
context:
space:
mode:
authorruki <[email protected]>2022-08-11 00:38:34 +0800
committerruki <[email protected]>2022-08-11 00:38:34 +0800
commiteb348d65c260d13a47bea41ee461fff95b9dfb60 (patch)
tree419e10c8a58e9f63be6d39d9c1cbf23bf215512c /xmake/rules/python
parent63e4fca54e18ae51097d59d0e977d17cd9200bc5 (diff)
ignore python links for linux
Diffstat (limited to 'xmake/rules/python')
-rw-r--r--xmake/rules/python/xmake.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/xmake/rules/python/xmake.lua b/xmake/rules/python/xmake.lua
index e63abaf28..d566fa849 100644
--- a/xmake/rules/python/xmake.lua
+++ b/xmake/rules/python/xmake.lua
@@ -43,8 +43,10 @@ rule("python.library")
end
-- fix segmentation fault for macosx
-- @see https://github.com/xmake-io/xmake/issues/2177#issuecomment-1209398292
- if target:is_plat("macosx") then
- target:add("shflags", "-undefined dynamic_lookup", {force = true})
+ 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