diff --git a/packages/p/python/xmake.lua b/packages/p/python/xmake.lua index b0719673d..baa164c42 100644 --- a/packages/p/python/xmake.lua +++ b/packages/p/python/xmake.lua @@ -28,7 +28,7 @@ package("python") add_deps("openssl", {host = true}) end - if is_plat("linux") then + if is_host("linux") then add_syslinks("util", "pthread", "dl") end diff --git a/packages/p/python2/xmake.lua b/packages/p/python2/xmake.lua index 6d660f674..c1bcd8c70 100644 --- a/packages/p/python2/xmake.lua +++ b/packages/p/python2/xmake.lua @@ -25,7 +25,7 @@ package("python2") add_deps("openssl", {host = true}) end - if is_plat("linux") then + if is_host("linux") then add_syslinks("util", "pthread", "dl") end