summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools/autoconf.lua
diff options
context:
space:
mode:
authorSirLynix <[email protected]>2024-03-30 15:51:00 +0100
committerSirLynix <[email protected]>2024-03-30 15:51:00 +0100
commite6b5288b207fe85ba0c0e620d44d718c8e00b82d (patch)
tree1c421756c300f03e189a5065cfa49b027b3e1b5f /xmake/modules/package/tools/autoconf.lua
parent75d8f661e2a5fd4090c6f90512481f8613e540c9 (diff)
move path translation to autoconf/cmake tools
Diffstat (limited to 'xmake/modules/package/tools/autoconf.lua')
-rw-r--r--xmake/modules/package/tools/autoconf.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/xmake/modules/package/tools/autoconf.lua b/xmake/modules/package/tools/autoconf.lua
index 9f4181b0b..d026ec767 100644
--- a/xmake/modules/package/tools/autoconf.lua
+++ b/xmake/modules/package/tools/autoconf.lua
@@ -400,6 +400,22 @@ function buildenvs(package, opt)
envs.LDSHARED = _translate_windows_bin_path(envs.LDSHARED)
envs.CPP = _translate_windows_bin_path(envs.CPP)
envs.RANLIB = _translate_windows_bin_path(envs.RANLIB)
+ if package:is_plat("android") then
+ -- use unix path separator on android as windows seps may not be understood by some tools (e.g. openssl's perl)
+ envs.CFLAGS = path.unix(envs.CFLAGS)
+ envs.CXXFLAGS = path.unix(envs.CXXFLAGS)
+ envs.CPPFLAGS = path.unix(envs.CPPFLAGS)
+ envs.ASFLAGS = path.unix(envs.ASFLAGS)
+ if envs.ARFLAGS then
+ envs.ARFLAGS = path.unix(envs.ARFLAGS)
+ end
+ if envs.LDFLAGS then
+ envs.LDFLAGS = path.unix(envs.LDFLAGS)
+ end
+ if envs.SHFLAGS then
+ envs.SHFLAGS = path.unix(envs.SHFLAGS)
+ end
+ end
end
local ACLOCAL_PATH = {}
local PKG_CONFIG_PATH = {}