diff options
| -rw-r--r-- | xmake/modules/package/tools/autoconf.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/xmake/modules/package/tools/autoconf.lua b/xmake/modules/package/tools/autoconf.lua index 833aa2f02..12b94d64f 100644 --- a/xmake/modules/package/tools/autoconf.lua +++ b/xmake/modules/package/tools/autoconf.lua @@ -377,6 +377,18 @@ function build(package, configs, opt) if option.get("verbose") then table.insert(argv, "V=1") end + if opt.makeconfigs then + for name, value in pairs(opt.makeconfigs) do + value = tostring(value):trim() + if value ~= "" then + if type(name) == "number" then + table.insert(argv, value) + else + table.insert(argv, name .. "=" .. value) + end + end + end + end make(package, argv, opt) end @@ -392,6 +404,18 @@ function install(package, configs, opt) if option.get("verbose") then table.insert(argv, "V=1") end + if opt.makeconfigs then + for name, value in pairs(opt.makeconfigs) do + value = tostring(value):trim() + if value ~= "" then + if type(name) == "number" then + table.insert(argv, value) + else + table.insert(argv, name .. "=" .. value) + end + end + end + end make(package, argv, opt) end |
