From eb348d65c260d13a47bea41ee461fff95b9dfb60 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 11 Aug 2022 00:38:34 +0800 Subject: ignore python links for linux --- xmake/rules/python/xmake.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'xmake/rules/python') 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 -- cgit v1.3.1