summaryrefslogtreecommitdiff
path: root/xmake/rules/platform/linux/module/driver_modules.lua
diff options
context:
space:
mode:
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 = {}