浏览代码

fix: static build for packages with shared=true as default. (#1502)

Chen Yufei 3 年之前
父节点
当前提交
7defc694b6
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      scripts/test.lua

+ 4 - 4
scripts/test.lua

@@ -113,10 +113,10 @@ function _require_packages(argv, packages)
     if argv.mode == "debug" then
     if argv.mode == "debug" then
         extra.debug = true
         extra.debug = true
     end
     end
-    if argv.kind == "shared" then
-        extra.configs = extra.configs or {}
-        extra.configs.shared = true
-    end
+    -- Some packages set shared=true as default, so we need to force set
+    -- shared=false to test static build.
+    extra.configs = extra.configs or {}
+    extra.configs.shared = argv.kind == "shared"
     local configs = argv.configs
     local configs = argv.configs
     if configs then
     if configs then
         extra.system  = false
         extra.system  = false