diff options
| -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 9559a2ad7..b69506fc5 100644 --- a/xmake/modules/package/tools/autoconf.lua +++ b/xmake/modules/package/tools/autoconf.lua @@ -449,7 +449,7 @@ function buildenvs(package, opt) name = name:gsub("gcc-%d+", "ld") name = name:gsub("g%+%+$", "ld") name = name:gsub("g%+%+%-%d+", "ld") - if os.isfile(path.join(dir, name)) then + if dir and os.isfile(path.join(dir, name)) then envs.LD = path.join(dir, name) else local ld = find_tool("ld") |
