X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;ds=sidebyside;f=Rules.mak;h=0f6f9b152e16fbd677aaec155e13bcc81b18a6cb;hb=0775a07d87e0c6bd467a61f5457e99ba20ac99ac;hp=2b0393309837838854afe699cd5591a0e6364f83;hpb=5b0f9e417e8b7c7a0700cea4a550843a8c1af087;p=oweals%2Fbusybox.git diff --git a/Rules.mak b/Rules.mak index 2b0393309..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 @@ -91,7 +91,7 @@ export VERSION BUILDTIME TOPDIR HOSTCC HOSTCFLAGS CROSS CC AR AS LD NM STRIP CPP # To compile vs uClibc, just use the compiler wrapper built by uClibc... # Everything should compile and work as expected these days... -#CC:=/usr/i386-linux-uclibc/usr/bin/i386-uclibc-gcc +#CC:=/usr/i386-linux-uclibc/bin/i386-uclibc-gcc # To compile vs some other alternative libc, you may need to use/adjust # the following lines to meet your needs... @@ -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)