diff options
| author | ruki <[email protected]> | 2021-09-21 00:57:30 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-09-21 00:57:30 +0800 |
| commit | eee6ab7a99c93953eed53d33c4a61fa1172971aa (patch) | |
| tree | 1c58e092e8ec0b6ae9dd5a7da8e056e75e1b04a1 | |
| parent | 0980e7b7e3eb331c87e96148bfab4d9a74784a00 (diff) | |
add cppflags for tools/autoconf
| -rw-r--r-- | xmake/modules/package/tools/autoconf.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/modules/package/tools/autoconf.lua b/xmake/modules/package/tools/autoconf.lua index 9e4f8c4b4..3e1541fe2 100644 --- a/xmake/modules/package/tools/autoconf.lua +++ b/xmake/modules/package/tools/autoconf.lua @@ -150,6 +150,7 @@ function buildenvs(package, opt) table.join2(cflags, opt.cxflags) table.join2(cxxflags, opt.cxxflags) table.join2(cxxflags, opt.cxflags) + table.join2(cppflags, opt.cppflags) -- @see https://github.com/xmake-io/xmake/issues/1688 table.join2(asflags, opt.asflags) table.join2(ldflags, opt.ldflags) table.join2(shflags, opt.shflags) @@ -177,6 +178,7 @@ function buildenvs(package, opt) envs.RANLIB = package:build_getenv("ranlib") envs.CFLAGS = table.concat(cflags, ' ') envs.CXXFLAGS = table.concat(cxxflags, ' ') + envs.CPPFLAGS = table.concat(cppflags, ' ') envs.ASFLAGS = table.concat(asflags, ' ') envs.ARFLAGS = table.concat(arflags, ' ') envs.LDFLAGS = table.concat(ldflags, ' ') |
