commit f4e99d32611bb521b57d0989b1190cf03a3473f5
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Wed Oct 30 12:26:04 2024 +0000
Fix linker issue
linker_fix.patch | 11 +++++++++++
nvidia-open-kmod.spec | 7 ++++++-
2 files changed, 17 insertions(+), 1 deletion(-)
---
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 df9ecbe..6e39d28 100644
--- a/nvidia-open-kmod.spec
+++ b/nvidia-open-kmod.spec
@@ -12,7 +12,7 @@ Name: nvidia-open-kmod
Epoch: 3
Version: 565.57.01
# Taken over by kmodtool
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: NVIDIA open display driver kernel module
License: GPLv2 and MIT
URL:
https://github.com/NVIDIA/open-gpu-kernel-modules
@@ -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,6 +48,7 @@ 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%%___*}
@@ -81,6 +83,9 @@ done
%changelog
+* Wed Oct 30 2024 Leigh Scott <leigh123linux(a)gmail.com> - 3:565.57.01-2
+- Fix linker issue
+
* Tue Oct 22 2024 Leigh Scott <leigh123linux(a)gmail.com> - 3:565.57.01-1
- Update to 565.57.01 beta