瀏覽代碼

fix autotools run

star9029 1 年之前
父節點
當前提交
12de1ebae6
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      packages/l/liba52/xmake.lua

+ 2 - 2
packages/l/liba52/xmake.lua

@@ -37,9 +37,9 @@ package("liba52")
     end)
 
     on_install(function (package)
-        if  is_subhost("msys") or (not is_plat("windows", "mingw")) then
+        if is_subhost("msys") or (not package:is_plat("windows", "mingw")) then
             -- Generate config.h by autotools
-            os.vrun("./configure")
+            os.vrunv("./configure", {}, {shell = true})
         end
         os.cp(path.join(package:scriptdir(), "port", "xmake.lua"), "xmake.lua")
         import("package.tools.xmake").install(package, {tools = package:config("tools")})