diff options
| author | ruki <[email protected]> | 2018-12-05 00:54:47 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-12-04 23:29:11 +0800 |
| commit | 824a61bb67014f10313b2f872b039fc47b51e5db (patch) | |
| tree | 59dbbf1d0eedc240259761c5d2dce2970107c982 /xmake/modules/package/tools/autoconf.lua | |
| parent | be6390741372ee7d02f6023fa7ee2512cb9b9840 (diff) | |
fix autoconf tool bug
Diffstat (limited to 'xmake/modules/package/tools/autoconf.lua')
| -rw-r--r-- | xmake/modules/package/tools/autoconf.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/autoconf.lua b/xmake/modules/package/tools/autoconf.lua index 8d216bb25..d78e6cc68 100644 --- a/xmake/modules/package/tools/autoconf.lua +++ b/xmake/modules/package/tools/autoconf.lua @@ -53,7 +53,7 @@ function install(package, configs) -- inherit flags from configs local flags_prev = {} for _, name in ipairs({"cflags", "cxxflags", "ldflags"}) do - local flags = package:config(name) or configs[name] + local flags = package:config(name) or (configs and configs[name] or nil) if flags then flags_prev[name] = os.getenv(name:upper()) os.addenv(name:upper(), flags) |
