summaryrefslogtreecommitdiff
path: root/x11-drivers/nvidia-drivers/files/nvidia-kernel-module-source-515.86.01-raw-ldflags.patch
blob: 9185ec0f33ce74405bd105fbb1768e1a278b4d30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Need to pass ABI flags if LD is ld.lld for USE=kernel-open
ld.lld: error: target emulation unknown: -m or at least one .o file required

https://bugs.gentoo.org/885483
https://github.com/NVIDIA/open-gpu-kernel-modules/issues/405
https://github.com/NVIDIA/open-gpu-kernel-modules/issues/214
--- a/kernel-module-source/utils.mk
+++ b/kernel-module-source/utils.mk
@@ -556,3 +556,3 @@
 	$(at_if_quiet)cd $$(dir $(1)); \
-	$$(call quiet_cmd_no_at,LD) -r -z noexecstack --format=binary \
+	$$(call quiet_cmd_no_at,LD) $$(RAW_LDFLAGS) -r -z noexecstack --format=binary \
 	    $$(notdir $(1)) -o $$(OUTPUTDIR_ABSOLUTE)/$$(notdir $$@)