[minicoredumper] [PATCH 2/8] buildsystem: let the autotools enable large file support
Juergen Borleis
jbe at pengutronix.de
Mon Mar 11 11:23:12 CET 2019
Using the "config.h" created by the configure script enables the
buildsystem to use feature detection functions.
While at it "_LARGEFILE64_SOURCE" will be replaced by "_FILE_OFFSET_BITS 64"
which is the correct macro in order to have the 'off_t' type 64 bits.
Signed-off-by: Juergen Borleis <jbe at pengutronix.de>
---
configure.ac | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 3602b43..8048fec 100644
--- a/configure.ac
+++ b/configure.ac
@@ -29,6 +29,7 @@ AC_PROG_AWK
AC_PROG_SED
AC_PROG_MKDIR_P
AC_PROG_CXX
+AC_SYS_LARGEFILE
LT_INIT
@@ -148,7 +149,7 @@ AC_ARG_VAR([MCD_REGD_USER_GROUP],
AS_IF([test "x$MCD_REGD_USER_GROUP" = x],
[MCD_REGD_USER_GROUP="root:root"], [])
-MCD_CPPFLAGS="-Wall -D_GNU_SOURCE -D_LARGEFILE64_SOURCE $MCD_WERROR"
+MCD_CPPFLAGS="-Wall -D_GNU_SOURCE $MCD_WERROR"
AC_SUBST([MCD_CPPFLAGS])
MCD_CFLAGS="-std=c99"
--
2.11.0
More information about the minicoredumper
mailing list