[packages/zfs] set KERNEL_CC and kernel arch

atler atler at pld-linux.org
Wed Dec 20 21:08:36 CET 2023


commit bee8008b6c09f6dd4495783f9828a85af2b865f9
Author: Jan Palus <atler at pld-linux.org>
Date:   Wed Dec 20 20:31:32 2023 +0100

    set KERNEL_CC and kernel arch

 zfs.spec | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/zfs.spec b/zfs.spec
index 07a675f..7bd749b 100644
--- a/zfs.spec
+++ b/zfs.spec
@@ -41,7 +41,7 @@ URL:		https://zfsonlinux.org/
 BuildRequires:	autoconf >= 2.50
 BuildRequires:	automake
 BuildRequires:	libtool
-BuildRequires:	rpmbuild(macros) >= 2.025
+BuildRequires:	rpmbuild(macros) >= 2.030
 %if %{with kernel}
 %{expand:%buildrequires_kernel kernel%%{_alt_kernel}-module-build >= 3:2.6.20.2}
 %endif
@@ -256,7 +256,10 @@ pakietu kernel%{_alt_kernel} w wersji %{_kernel_ver}.\
 %{nil}
 
 %define build_kernel_pkg()\
+KERNEL_MAKE="ARCH=%_kernel_arch" \\\
 %configure \\\
+	KERNEL_CC="%{__cc}" \\\
+	ARCH_UM="ARCH=%{_kernel_arch}" \\\
 	--disable-silent-rules \\\
 	--with-config="kernel" \\\
 	--with-linux=%{_kernelsrcdir}\\\
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/zfs.git/commitdiff/bee8008b6c09f6dd4495783f9828a85af2b865f9



More information about the pld-cvs-commit mailing list