Browse Source

fix autotools run

star9029 1 năm trước cách đây
mục cha
commit
12de1ebae6
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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")})