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

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