commit 40f2cb25d68f991621a45293d0d91460087f7e51
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Fri Dec 13 21:37:49 2024 +0000
Fix linker patch
linker_fix.patch | 11 +++++++++++
nvidia-open-kmod.spec | 5 +++--
2 files changed, 14 insertions(+), 2 deletions(-)
---
diff --git a/linker_fix.patch b/linker_fix.patch
new file mode 100644
index 0000000..4b1a7be
--- /dev/null
+++ b/linker_fix.patch
@@ -0,0 +1,11 @@
+--- a/src/nvidia/Makefile
++++ b/src/nvidia/Makefile
+@@ -208,8 +208,6 @@ all: $(NV_KERNEL_O)
+
+ LINKER_SCRIPT = nv-kernel.ld
+
+-NV_KERNEL_O_LDFLAGS += $(LDFLAGS)
+-
+ $(NV_KERNEL_O): $(OBJS) $(EXPORTS_LINK_COMMAND) $(LINKER_SCRIPT)
+ $(call quiet_cmd,LD) \
+ $(NV_KERNEL_O_LDFLAGS) \
diff --git a/nvidia-open-kmod.spec b/nvidia-open-kmod.spec
index 997140d..32f2478 100644
--- a/nvidia-open-kmod.spec
+++ b/nvidia-open-kmod.spec
@@ -20,6 +20,7 @@ URL:
https://github.com/NVIDIA/open-gpu-kernel-modules
Source0: %{url}/archive/%{version}/open-gpu-kernel-modules-%{version}.tar.gz
Source11: nvidia-open-kmodtool-excludekernel-filterfile
Patch0: make_modeset_default.patch
+Patch1: linker_fix.patch
ExclusiveArch: x86_64 aarch64
@@ -47,13 +48,13 @@ echo "Using original nvidia defaults"
echo "Set nvidia to fbdev=1 modeset=1"
%patch 0 -p1 -d open-gpu-kernel-modules-%{version}
%endif
+%patch 1 -p1 -d open-gpu-kernel-modules-%{version}
for kernel_version in %{?kernel_versions} ; do
cp -a open-gpu-kernel-modules-%{version} _kmod_build_${kernel_version%%___*}
done
%build
-unset LDFLAGS
%if 0%{?_without_nvidia_uvm:1}
export NV_EXCLUDE_KERNEL_MODULES="${NV_EXCLUDE_KERNEL_MODULES} nvidia_uvm "
%endif
@@ -83,7 +84,7 @@ done
%changelog
* Fri Dec 13 2024 Leigh Scott <leigh123linux(a)gmail.com> - 3:565.77-2
-- unset LDFLAGS to fix build issue
+- Fix linker patch
* Thu Dec 05 2024 Leigh Scott <leigh123linux(a)gmail.com> - 3:565.77-1
- Update to 565.77 release