[hackers] [ubase] Add -D_FILE_OFFSET_BITS=64 to config.mk || sin
commit 1b28deba3dc648cd2a67c9ea6f8db26fee416fec
Author: sin <sin_AT_2f30.org>
Date: Wed Jun 4 15:08:01 2014 +0100
Add -D_FILE_OFFSET_BITS=64 to config.mk
stat() will fail if compiled on a 32-bit platform and the file
size is greater than (1<<31)-1 bytes.
diff --git a/config.mk b/config.mk
index 6587d3a..9db2d96 100644
--- a/config.mk
+++ b/config.mk
_AT_@ -8,6 +8,6 @@ MANPREFIX = $(PREFIX)/share/man
#CC = gcc
#CC = musl-gcc
LD = $(CC)
-CPPFLAGS = -D_GNU_SOURCE
+CPPFLAGS = -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
CFLAGS = -std=c99 -Wall -Wextra $(CPPFLAGS)
LDFLAGS = -s -lcrypt # -static
Received on Wed Jun 04 2014 - 16:13:02 CEST
This archive was generated by hypermail 2.3.0
: Wed Jun 04 2014 - 16:24:07 CEST