git » libjio » commit 9d74372

Some systems/C libraries (dietlibc, for instance) also like having _FILE_OFFSET_BITS=64 defined for large file access, and call "getconf LFS_CFLAGS" to get the ones needed for access.

author Alberto Bertogli
2004-09-08 16:29:06 UTC
committer Alberto Bertogli
2007-07-15 13:23:10 UTC
parent c15f1c3f3bfba23aad0b21a8d4488aacbfdb234f

Some systems/C libraries (dietlibc, for instance) also like having _FILE_OFFSET_BITS=64 defined for large file access, and call "getconf LFS_CFLAGS" to get the ones needed for access.

Some systems/C libraries (dietlibc, for instance) also like having
_FILE_OFFSET_BITS=64 defined for large file access, and call "getconf
LFS_CFLAGS" to get the ones needed for access.

As including them doesn't hurt and should increase portability, the patch adds
them to CFLAGS in Make.conf.

Make.conf +1 -0

diff --git a/Make.conf b/Make.conf
index 224fb2f..04dca9b 100644
--- a/Make.conf
+++ b/Make.conf
@@ -5,6 +5,7 @@ CC = gcc
 CFLAGS += -Wall -O6 \
 	-D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 \
 	-D_LFS_LARGEFILE=1 -D_LFS64_LARGEFILE=1 \
+	-D_FILE_OFFSET_BITS=64 `getconf LFS_CFLAGS 2>/dev/null` \
 	-D_XOPEN_SOURCE=500
 
 ifdef DEBUG