[hackers] [sbase] Add some info to config.mk || FRIGN

From: <git_AT_suckless.org>
Date: Fri, 5 Jun 2015 01:23:08 +0200 (CEST)

commit d38361245097d1903eb9ef55c843bdef6a621f38
Author: FRIGN <dev_AT_frign.de>
Date: Fri Jun 5 01:16:13 2015 +0200

    Add some info to config.mk
    
    glibc breaks tools on 32bit systems due to a design flaw not allowing
    64bit file offsets and only doing so with a cryptic flag.
    
    Also, make sure to tell users about -lrt, which might be needed on
    some systems.

diff --git a/config.mk b/config.mk
index 84525ce..4251cd6 100644
--- a/config.mk
+++ b/config.mk
_AT_@ -10,7 +10,9 @@ LD = $(CC)
 AR = ar
 RANLIB = ranlib
 
-# For NetBSD add -D_NETBSD_SOURCE
+# for NetBSD add -D_NETBSD_SOURCE
+# for glibc on 32bit add -D_FILE_OFFSET_BITS=64 or use something sane
+# -lrt might be needed on some systems
 CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700
 CFLAGS = -std=c99 -Wall -pedantic
 LDFLAGS = -s
Received on Fri Jun 05 2015 - 01:23:08 CEST

This archive was generated by hypermail 2.3.0 : Thu Jun 18 2015 - 17:36:00 CEST