From 4bb2d8aa6465cc1040b55557329bebb55e75c0bc Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 18 Apr 2021 22:35:51 +0800 Subject: fix autoreconf on msys --- xmake/modules/package/tools/autoconf.lua | 2 +- xmake/modules/private/action/trybuild/autotools.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xmake/modules/package/tools/autoconf.lua b/xmake/modules/package/tools/autoconf.lua index c40fbafda..768ee20db 100644 --- a/xmake/modules/package/tools/autoconf.lua +++ b/xmake/modules/package/tools/autoconf.lua @@ -266,7 +266,7 @@ function configure(package, configs, opt) if os.isfile("autogen.sh") then os.vrunv("sh", {"./autogen.sh"}, {envs = autogen_envs(package, opt)}) elseif os.isfile("configure.ac") then - os.vrunv("autoreconf", {"--install", "--symlink"}, {envs = autogen_envs(package, opt)}) + os.vrunv("sh", {"autoreconf", "--install", "--symlink"}, {envs = autogen_envs(package, opt)}) end end diff --git a/xmake/modules/private/action/trybuild/autotools.lua b/xmake/modules/private/action/trybuild/autotools.lua index ae0f532ae..14434f1c5 100644 --- a/xmake/modules/private/action/trybuild/autotools.lua +++ b/xmake/modules/private/action/trybuild/autotools.lua @@ -223,7 +223,7 @@ function build() if os.isfile("autogen.sh") then os.vexecv("sh", {"./autogen.sh"}) elseif os.isfile("configure.ac") then - os.vexec("autoreconf --install --symlink") + os.vexecv("sh", {"autoreconf", "--install", "--symlink"}) end end -- cgit v1.3.1