X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=Rules.mak;h=0f6f9b152e16fbd677aaec155e13bcc81b18a6cb;hb=c3b7f7d6e710ad896349cd5a2e913d3efc79275d;hp=d5b0127f8918ed379eddb9ba5473eb81a24c3366;hpb=887ca79f04cdf45874ed783c1fb9b950bf25a246;p=oweals%2Fbusybox.git diff --git a/Rules.mak b/Rules.mak index d5b0127f8..0f6f9b152 100644 --- 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)