From 77fd31ed69af6dea61d13180453e6866e92cecd6 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 07:44:39 +0100 Subject: [PATCH] dkms: add IGNORE_CC_MISMATCH=1 before make command to fix build with gcc 10.1+ [release 390.138-2mamba;Fri Aug 21 2020] --- nvidia.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nvidia.spec b/nvidia.spec index cf646f6..f78bdc5 100644 --- a/nvidia.spec +++ b/nvidia.spec @@ -3,7 +3,7 @@ Name: nvidia Version: 390.138 Epoch: 1 -Release: 1mamba +Release: 2mamba Summary: NVIDIA proprietary accelerated drivers for the Linux Kernel Group: System/Kernel and Hardware Vendor: openmamba @@ -230,7 +230,7 @@ cat > %{buildroot}%{_prefix}/src/%{name}-%{version}/dkms.conf << _EOF PACKAGE_NAME=%{name} PACKAGE_VERSION=%{version} MAKE="ln -sf /usr/src/\${PACKAGE_NAME}-\${PACKAGE_VERSION}/nv-kernel.o \${dkms_tree}/\${PACKAGE_NAME}/\${PACKAGE_VERSION}/build/;\ -make SYSSRC=\${kernel_source_dir} modules" +IGNORE_CC_MISMATCH=1 make SYSSRC=\${kernel_source_dir} modules" CLEAN="make SYSSRC=\${kernel_source_dir} clean" BUILT_MODULE_NAME[0]=nvidia BUILT_MODULE_LOCATION[0]=./ @@ -433,6 +433,9 @@ exit 0 %doc current/{LICENSE,NVIDIA_Changelog,README.txt} current/html %changelog +* Fri Aug 21 2020 Silvan Calarco 390.138-2mamba +- dkms: add IGNORE_CC_MISMATCH=1 before make command to fix build with gcc 10.1+ + * Fri Jul 24 2020 Silvan Calarco 390.138-1mamba - update to 390.138