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

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