summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools/autoconf.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-03-20 22:43:45 +0800
committerruki <[email protected]>2022-03-20 22:43:45 +0800
commit2255ebb1f8d5bac4f61d6111d14a3aa46a8d3c4e (patch)
tree5c54868b3c9be9813aed4a5bf64ec44525837b70 /xmake/modules/package/tools/autoconf.lua
parent91d11eb00c42019f98ddf85821bab7f05dd6c62e (diff)
improve tools/autoconf
Diffstat (limited to 'xmake/modules/package/tools/autoconf.lua')
-rw-r--r--xmake/modules/package/tools/autoconf.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/modules/package/tools/autoconf.lua b/xmake/modules/package/tools/autoconf.lua
index da83bc7d9..cd5df4307 100644
--- a/xmake/modules/package/tools/autoconf.lua
+++ b/xmake/modules/package/tools/autoconf.lua
@@ -287,6 +287,7 @@ function buildenvs(package, opt)
local name = path.filename(cxx)
name = name:gsub("clang$", "clang++")
name = name:gsub("clang%-", "clang++-")
+ name = name:gsub("gcc$", "g++")
name = name:gsub("gcc%-", "g++-")
envs.CXX = dir and path.join(dir, name) or name
end