Set the close-on-exec flag, just to be saf
[oweals/busybox.git] / Rules.mak
index d5b0127f8918ed379eddb9ba5473eb81a24c3366..357529d1ad33b04527a2562b17b4f7fd03383ea0 100644 (file)
--- a/Rules.mak
+++ b/Rules.mak
@@ -36,7 +36,7 @@ TARGET_OS:=linux
 # If you want to add some simple compiler switches (like -march=i686),
 # especially from the command line, use this instead of CFLAGS directly.
 # For optimization overrides, it's better still to set OPTIMIZATION.
-CFLAGS_EXTRA:=
+CFLAGS_EXTRA:=#-Werror
  
 # If you want a static binary, turn this on.
 DOSTATIC:=false
@@ -132,8 +132,8 @@ TARGET_ARCH:=${shell $(CC) -dumpmachine | sed -e s'/-.*//' \
 # for OPTIMIZATION...
 
 # use '-Os' optimization if available, else use -O2
-OPTIMIZATION := ${shell if $(CC) -Os -S -o /dev/null -xc /dev/null >/dev/null 2>&1; \
-       then echo "-Os"; else echo "-O2" ; fi}
+OPTIMIZATION := ${shell if $(CC) -Os -S -o /dev/null -xc /dev/null \
+       >/dev/null 2>&1; then echo "-Os"; else echo "-O2" ; fi}
 
 # Some nice architecture specific optimizations
 ifeq ($(strip $(TARGET_ARCH)),arm)
@@ -162,7 +162,7 @@ OPTIMIZATIONS:=$(OPTIMIZATION) -fomit-frame-pointer
 
 ifeq ($(strip $(DOLFS)),true)
     # For large file summit support
-    CFLAGS+=-D_FILE_OFFSET_BITS=64 -D__USE_FILE_OFFSET64
+    CFLAGS+=-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
 endif
 ifeq ($(strip $(DODMALLOC)),true)
     # For testing mem leaks with dmalloc