improve mingw for libiconv (#1523)

pull/1526/head
ruki 2 years ago committed by GitHub
parent 32d17d039b
commit 1c58b22400
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      packages/l/libiconv/xmake.lua

@ -26,7 +26,7 @@ package("libiconv")
package:addenv("PATH", "bin")
end)
on_install("windows", function (package)
on_install("windows", "mingw", function (package)
io.gsub("config.h.in", "%$", "")
io.gsub("config.h.in", "# ?undef (.-)\n", "${define %1}\n")
io.gsub("libcharset/config.h.in", "%$", "")
@ -41,7 +41,7 @@ package("libiconv")
})
end)
on_install("macosx", "linux", "cross", "android", "mingw@msys", function (package)
on_install("macosx", "linux", "cross", "android", function (package)
local configs = {"--disable-dependency-tracking", "--enable-extra-encodings"}
if not package:is_plat("macosx") then
table.insert(configs, "--enable-relocatable")
@ -51,9 +51,6 @@ package("libiconv")
if package:debug() then
table.insert(configs, "--enable-debug")
end
if package:config("pic") ~= false then
table.insert(configs, "--with-pic")
end
if package:is_plat("android") then
io.replace("./configure", "#define gid_t int", "")
io.replace("./configure", "#define uid_t int", "")

Loading…
Cancel
Save