Selaa lähdekoodia

fix python for linux (#4869)

ruki 1 vuosi sitten
vanhempi
commit
9d1ede210f
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 5 0
      packages/p/python/xmake.lua

+ 5 - 0
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 = ""}})