linux6.2: fix fixdep on 32-bit in another way.

This commit is contained in:
Leah Neukirchen 2023-05-13 22:12:59 +02:00
parent 53dde1798a
commit 85385f83de
2 changed files with 11 additions and 3 deletions

View File

@ -0,0 +1,11 @@
--- a/tools/build/fixdep.c
+++ b/tools/build/fixdep.c
@@ -11,6 +11,8 @@
* base transformation of dependecies without the CONFIG mangle.
*/
+#define _FILE_OFFSET_BITS 64
+
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>

View File

@ -51,9 +51,6 @@ export KBUILD_BUILD_TIMESTAMP=$(LC_ALL=C date -ud @${SOURCE_DATE_EPOCH:-0})
export KBUILD_BUILD_USER=voidlinux
export KBUILD_BUILD_HOST=voidlinux
# 64-bit inodes in fixdep
export HOST_EXTRACFLAGS="-D_FILE_OFFSET_BITS=64"
if [ "$CROSS_BUILD" ]; then
_cross="CROSS_COMPILE=${XBPS_CROSS_TRIPLET}-"
fi