summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools/autoconf.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2025-03-12 00:46:23 +0800
committerruki <[email protected]>2025-03-12 00:46:23 +0800
commitc1fda3bfa097dc9dece19e4f5363c58d2cd70a57 (patch)
treee0a443b2a1c361227194c457642972d7b4cbad4e /xmake/modules/package/tools/autoconf.lua
parent10f0cafd082584bada8c632b9b7b07bd044d6d23 (diff)
fix ar for autoconf #6206
Diffstat (limited to 'xmake/modules/package/tools/autoconf.lua')
-rw-r--r--xmake/modules/package/tools/autoconf.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/autoconf.lua b/xmake/modules/package/tools/autoconf.lua
index 4d2a404ed..8d312a76a 100644
--- a/xmake/modules/package/tools/autoconf.lua
+++ b/xmake/modules/package/tools/autoconf.lua
@@ -384,7 +384,8 @@ function buildenvs(package, opt)
-- force to apply shflags on macosx https://gmplib.org/manual/Known-Build-Problems
envs.CC = envs.CC .. " -arch " .. package:arch()
end
- if package:is_plat("cross") or package:has_tool("ar", "ar", "emar") then
+ -- android r27 will use llmv-ar instead of ar, https://github.com/xmake-io/xmake/issues/6206
+ if package:is_plat("cross") or package:has_tool("ar", "ar", "emar", "llvm_ar") then
-- only for cross-toolchain
envs.CXX = package:build_getenv("cxx")
if not envs.ARFLAGS or envs.ARFLAGS == "" then