summaryrefslogtreecommitdiff
path: root/xmake/rules/platform/linux/module/driver_modules.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2025-07-10 00:55:27 +0800
committerruki <[email protected]>2025-07-10 00:55:27 +0800
commit627075e248c4e2619964f7e17a8a1ea046001f36 (patch)
tree9926bd0cdd9c9779560adcb0c7f8736b49580c55 /xmake/rules/platform/linux/module/driver_modules.lua
parentdb556ee1f8068f78eb459e96e22a3da42c4ed46a (diff)
fix ld #6613
Diffstat (limited to 'xmake/rules/platform/linux/module/driver_modules.lua')
-rw-r--r--xmake/rules/platform/linux/module/driver_modules.lua2
1 files changed, 2 insertions, 0 deletions
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 = {}