From: Marcin Krol Date: Sat, 30 Mar 2024 23:13:32 +0000 (+0100) Subject: - misc fixes X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=a18f2d9b95bc112368516ab71fe0963204024555;p=packages%2Fkernel.git - misc fixes --- diff --git a/kernel.spec b/kernel.spec index d10d1eb..64ff6a7 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