gentoo/x11-drivers/nvidia-drivers/files/nvidia-kernel-module-source-515.86.01-raw-ldflags.patch
Ionen Wolkens 7b1d7789c7
x11-drivers/nvidia-drivers: match paths in raw-ldflags patch
Oops, but doesn't impact anything.

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2022-12-11 14:21:57 -05:00

14 lines
628 B
Diff

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 $$@)