We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 173069f + c295751 commit 29ee4b4Copy full SHA for 29ee4b4
xmake/modules/package/tools/autoconf.lua
@@ -449,7 +449,14 @@ function buildenvs(package, opt)
449
name = name:gsub("gcc-%d+", "ld")
450
name = name:gsub("g%+%+$", "ld")
451
name = name:gsub("g%+%+%-%d+", "ld")
452
- envs.LD = dir and path.join(dir, name) or name
+ if dir and os.isfile(path.join(dir, name)) then
453
+ envs.LD = path.join(dir, name)
454
+ else
455
+ local ld = find_tool("ld")
456
+ if ld and path.filename(ld.program) == name then
457
+ envs.LD = ld.program
458
+ end
459
460
end
461
-- we need use clang++ as cxx, autoconf will use it as linker
462
-- https://github.com/xmake-io/xmake/issues/2170
0 commit comments