summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEric Andersen2000-09-21 02:23:30 +0000
committerEric Andersen2000-09-21 02:23:30 +0000
commit8a2e56c5dfc41f6946e36234eef4df559286db05 (patch)
tree23a5f54bcbf8aea8f08ae85f8397b7add91bf79f /Makefile
parent350b3f9236b29514f3755af2b4b2957475abf829 (diff)
downloadbusybox-8a2e56c5dfc41f6946e36234eef4df559286db05.zip
busybox-8a2e56c5dfc41f6946e36234eef4df559286db05.tar.gz
Large file >2Gib support.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 278887f..6a9c694 100644
--- a/Makefile
+++ b/Makefile
@@ -40,6 +40,16 @@ DODEBUG = false
# Do not enable this for production builds...
DODMALLOC = false
+# If you want large file summit support, turn this on.
+# This has no effect if you don't have a kernel with lfs
+# support, and a system with libc-2.1.3 or later.
+# Some of the programs that can benefit from lfs support
+# are dd, gzip, mount, tar, and mkfs_minix.
+# LFS allows you to use the above programs for files
+# larger than 2GB!
+DOLFS = false
+
+
# If you are running a cross compiler, you may want to set this
# to something more interesting...
CROSS = #powerpc-linux-
@@ -63,6 +73,10 @@ OPTIMIZATION = $(shell if $(CC) -Os -S -o /dev/null -xc /dev/null >/dev/null 2>&
WARNINGS = -Wall
+ifeq ($(DOLFS),true)
+ # For large file summit support
+ CFLAGS+=-D_FILE_OFFSET_BITS=64
+endif
ifeq ($(DODMALLOC),true)
# For testing mem leaks with dmalloc
CFLAGS+=-DDMALLOC