fix libffi with correct flag (#2130)

pull/2131/head
Hoildkv 2 years ago committed by GitHub
parent b290a5915a
commit 70656b765e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      packages/l/libffi/xmake.lua
  2. 3
      packages/n/ncurses/xmake.lua

@ -34,18 +34,14 @@ package("libffi")
end)
on_install("macosx", "linux", "bsd", "mingw", function (package)
local configs = {"--disable-silent-rules", "--disable-dependency-tracking"}
table.insert(configs, "--libdir=" .. package:installdir("lib"):gsub("\\", "/"))
-- https://github.com/libffi/libffi/issues/127
local configs = {"--disable-silent-rules", "--disable-dependency-tracking", "--disable-multi-os-directory"}
table.insert(configs, "--enable-shared=" .. (package:config("shared") and "yes" or "no"))
table.insert(configs, "--enable-static=" .. (package:config("shared") and "no" or "yes"))
if package:debug() then
table.insert(configs, "--enable-debug")
end
import("package.tools.autoconf").install(package, configs)
-- @see https://github.com/xmake-io/xmake-repo/pull/2085#issuecomment-1567654930
if os.isdir(path.join(package:installdir(), "lib64")) then
package:add("linkdirs", "lib", "lib64")
end
end)
on_test(function (package)

@ -14,6 +14,9 @@ package("ncurses")
add_configs("widec", {description = "Compile with wide-char/UTF-8 code.", default = true, type = "boolean"})
if is_plat("linux") then
add_extsources("apt::libncurses-dev")
end
on_load(function (package)
if package:config("widec") then
package:add("links", "ncursesw", "formw", "panelw", "menuw")

Loading…
Cancel
Save