Blame SOURCES/0005-gcore.mk-fix-mismatch-of-_FILE_OFFSET_BITS-when-buil.patch

de9238
From d2795659986dacc51e98a3d1dbc8b673582c20fe Mon Sep 17 00:00:00 2001
de9238
From: HATAYAMA Daisuke <d.hatayama@fujitsu.com>
de9238
Date: Tue, 28 Jun 2022 03:54:46 +0900
de9238
Subject: [PATCH 5/5] gcore.mk: fix mismatch of _FILE_OFFSET_BITS when building
de9238
 gcore.so
de9238
de9238
On arm and mips, while _FILE_OFFSET_BITS=64 is used when building
de9238
gcore.so by make extensions, it is not used by gcore.mk.
de9238
de9238
Fix this inconsistency by using _FILE_OFFSET_BITS=64 in gcore.mk on
de9238
arm and mips.
de9238
de9238
Signed-off-by: HATAYAMA Daisuke <d.hatayama@fujitsu.com>
de9238
Signed-off-by: Lianbo Jiang <lijiang@redhat.com>
de9238
---
de9238
 src/gcore.mk | 4 ++--
de9238
 1 file changed, 2 insertions(+), 2 deletions(-)
de9238
de9238
diff --git a/src/gcore.mk b/src/gcore.mk
de9238
index 4af292b79c60..1fd4d84c2ded 100644
de9238
--- a/src/gcore.mk
de9238
+++ b/src/gcore.mk
de9238
@@ -32,7 +32,7 @@ endif
de9238
 
de9238
 ifeq ($(shell arch), arm)
de9238
   TARGET=ARM
de9238
-  TARGET_CFLAGS=
de9238
+  TARGET_CFLAGS=-D_FILE_OFFSET_BITS=64
de9238
   ARCH=SUPPORTED
de9238
 endif
de9238
 
de9238
@@ -44,7 +44,7 @@ endif
de9238
 
de9238
 ifeq ($(shell arch), mips)
de9238
   TARGET=MIPS
de9238
-  TARGET_CFLAGS=
de9238
+  TARGET_CFLAGS=-D_FILE_OFFSET_BITS=64
de9238
   ARCH=SUPPORTED
de9238
 endif
de9238
 
de9238
-- 
de9238
2.37.1
de9238