fix python for linux (#4869)

pull/4871/head
ruki 5 months ago committed by GitHub
parent a7ac7e43c2
commit 9d1ede210f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      packages/p/python/xmake.lua

@ -237,6 +237,11 @@ package("python")
os.mkdir(package:installdir("lib", pyver))
end
-- fix ssl module detect, e.g. gcc conftest.c -ldl -lcrypto >&5
if package:is_plat("linux") then
io.replace("./configure", "-lssl -lcrypto", "-lssl -lcrypto -ldl", {plain = true})
end
-- unset these so that installing pip and setuptools puts them where we want
-- and not into some other Python the user has installed.
import("package.tools.autoconf").configure(package, configs, {envs = {PYTHONHOME = "", PYTHONPATH = ""}})

Loading…
Cancel
Save