summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools/autoconf.lua
diff options
context:
space:
mode:
authorxq114 <[email protected]>2024-02-07 19:50:29 +0800
committerxq114 <[email protected]>2024-02-07 19:50:29 +0800
commitade940b6569094837226e118cf050c690635b3f9 (patch)
tree5a963f21e2bba078f46962f286b9db8510149067 /xmake/modules/package/tools/autoconf.lua
parent76558d21fd3277f5f8d7c43c69d0b24f68ca4acd (diff)
force to apply -arch arm64 for autoconf
Diffstat (limited to 'xmake/modules/package/tools/autoconf.lua')
-rw-r--r--xmake/modules/package/tools/autoconf.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/modules/package/tools/autoconf.lua b/xmake/modules/package/tools/autoconf.lua
index 02bcec28c..79974822e 100644
--- a/xmake/modules/package/tools/autoconf.lua
+++ b/xmake/modules/package/tools/autoconf.lua
@@ -324,6 +324,9 @@ function buildenvs(package, opt)
envs.CPP = _translate_windows_bin_path(envs.CPP)
envs.RANLIB = _translate_windows_bin_path(envs.RANLIB)
end
+ elseif package:is_plat("macosx") then
+ -- force to apply shflags on macosx https://gmplib.org/manual/Known-Build-Problems
+ envs.CC = envs.CC .. " -arch " .. package:arch()
elseif package:is_plat("cross") or package:has_tool("ar", "ar", "emar") then
-- only for cross-toolchain
envs.CXX = package:build_getenv("cxx")