summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools/autoconf.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/package/tools/autoconf.lua')
-rw-r--r--xmake/modules/package/tools/autoconf.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/package/tools/autoconf.lua b/xmake/modules/package/tools/autoconf.lua
index a93bb6a80..3dbc7853a 100644
--- a/xmake/modules/package/tools/autoconf.lua
+++ b/xmake/modules/package/tools/autoconf.lua
@@ -29,7 +29,7 @@ function _get_configs(package, configs)
table.insert(configs, "--prefix=" .. package:installdir())
-- add host for cross-complation
- if not configs.host and not package:is_plat(os.host()) then
+ if not configs.host and not package:is_plat(os.subhost()) then
if package:is_plat("iphoneos") then
local triples =
{
@@ -71,7 +71,7 @@ end
-- get the build environments
function buildenvs(package)
local envs = {}
- if package:is_plat(os.host()) then
+ if package:is_plat(os.subhost()) then
local cflags = table.join(table.wrap(package:config("cxflags")), package:config("cflags"))
local cxxflags = table.join(table.wrap(package:config("cxflags")), package:config("cxxflags"))
envs.CFLAGS = table.concat(cflags, ' ')