From: Marcin Krol Date: Sun, 31 Mar 2024 00:45:21 +0000 (+0100) Subject: - misc fixes X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=84aec039fb8a2e92b39a1a44e9b8e1febe177fb7;p=packages%2Fkernel.git - misc fixes --- 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