From 84aec039fb8a2e92b39a1a44e9b8e1febe177fb7 Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Sun, 31 Mar 2024 01:45:21 +0100 Subject: [PATCH] - misc fixes --- kernel.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kernel.spec b/kernel.spec index d2bc631..baba821 100644 --- a/kernel.spec +++ b/kernel.spec @@ -115,7 +115,7 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define topdir %{_builddir}/%{name}-%{version} %define srcdir %{topdir}/linux-%{basever} %define objdir %{topdir}/%{targetobj} -%define targetobj %{_target_base_arch}-gcc-%(%{kgcc} -dumpversion) +%define targetobj %{_target_base_arch}-gcc-%(%{__cc} -dumpversion) %define _kernelsrcdir /usr/src/linux%{versuffix}%{_alt_kernel}-%{version} @@ -132,7 +132,8 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define CrossOpts ARCH=%{_target_base_arch} CC="%{__cc}" %define DepMod /sbin/depmod %endif -%define MakeOpts %{CrossOpts} HOSTCC="%{__cc}" +# use 64-bit offsets for fixdeps to work with 64-bit inodes +%define MakeOpts %{CrossOpts} HOSTCC="%{__cc} -D_FILE_OFFSET_BITS=64" %description This package contains the Linux kernel that is used to boot and run -- 2.46.0