blob: d0ecdcba4e492b8095f6f330b3139c49404c3223 [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001From 69647e5d393a52ed3892eccc172ee750d6aaa45d Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 30 Dec 2022 21:08:25 -0800
4Subject: [PATCH] configure: Do not add -D_FILE_OFFSET_BITS to CFLAGS
5
6AC_SYS_LARGEFILE macro is in use and this will add a definition for
7_FILE_OFFSET_BITS in generated config.h which is already included as
8first include file in fatresize.c hence its not required to be added via
9CFLAGS, this also fixes a case when -D_FILE_OFFSET_BITS=64 is passed via
10CC from environment, where the autoconf macros set
11ac_cv_sys_file_offset_bits=no and that means we will have
12-D_FILE_OFFSET_BITS=no added to CFLAGS which messes up builds.
13
14Upstream-Status: Submitted [https://salsa.debian.org/parted-team/fatresize/-/merge_requests/3]
15Signed-off-by: Khem Raj <raj.khem@gmail.com>
16---
17 configure.ac | 1 -
18 1 file changed, 1 deletion(-)
19
20diff --git a/configure.ac b/configure.ac
21index d6e6cb2..4dcec28 100644
22--- a/configure.ac
23+++ b/configure.ac
24@@ -29,7 +29,6 @@ AC_CHECK_FUNCS([memset strtoll])
25
26 # Check for LFS
27 AC_SYS_LARGEFILE
28-CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=${ac_cv_sys_file_offset_bits}"
29
30 dnl libparted
31 # hack
32--
332.39.0
34