git » drill.git » commit c5031b3

Add Large File Support

author Rodrigo Campos
2014-01-20 15:57:47 UTC
committer Rodrigo Campos
2014-01-20 18:28:43 UTC
parent be8b9943ec87c7147887d296359ad153325fd180

Add Large File Support

Signed-off-by: Rodrigo Campos <rodrigo@sdfg.com.ar>

Makefile +3 -0

diff --git a/Makefile b/Makefile
index 26e732d..b7d13de 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,9 @@
 CFLAGS += -Wall -Wstrict-prototypes -O3
 ALL_CFLAGS += $(CFLAGS) -std=c99 -pedantic
 
+# LFS support (LFS_LDFLAGS are not needed on Linux)
+ALL_CFLAGS += $(shell getconf LFS_CFLAGS 2>/dev/null)
+
 # This is needed for fallocate() and pread()
 ALL_CFLAGS += -D_GNU_SOURCE