add pic for python (#1078)

pull/1079/head
ruki 3 years ago committed by GitHub
parent 8199855a80
commit f51e6fd6fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      packages/p/python/xmake.lua

@ -199,6 +199,11 @@ package("python")
end
end
-- add pic
if package:is_plat("linux") and package:config("pic") ~= false then
table.insert(cppflags, "-fPIC")
end
-- add external path for zlib and libffi
for _, libname in ipairs({"zlib", "libffi"}) do
local lib = package:dep(libname)

Loading…
Cancel
Save