From 627075e248c4e2619964f7e17a8a1ea046001f36 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 10 Jul 2025 00:55:27 +0800 Subject: fix ld #6613 --- xmake/rules/platform/linux/module/driver_modules.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xmake/rules/platform/linux/module/driver_modules.lua') diff --git a/xmake/rules/platform/linux/module/driver_modules.lua b/xmake/rules/platform/linux/module/driver_modules.lua index 8a0f41570..26437144c 100644 --- a/xmake/rules/platform/linux/module/driver_modules.lua +++ b/xmake/rules/platform/linux/module/driver_modules.lua @@ -266,7 +266,9 @@ function link(target, opt) local ld = target:tool("ld") assert(ld, "ld not found!") ld = ld:gsub("gcc$", "ld") + ld = ld:gsub("gcc-%d+", "ld") ld = ld:gsub("g%+%+$", "ld") + ld = ld:gsub("g%+%+%-%d+", "ld") -- link target.o local argv = {} -- cgit v1.3.1