]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Makefile: Default to -O2 optimization
authorJes Sorensen <jsorensen@fb.com>
Fri, 21 Apr 2017 16:06:35 +0000 (12:06 -0400)
committerJes Sorensen <jsorensen@fb.com>
Fri, 21 Apr 2017 16:06:35 +0000 (12:06 -0400)
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Makefile

index 56558121202af51720a81f9d07ca71c1b0252bb6..685069612617bd405c30efbd5d6658005e17410b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -30,6 +30,7 @@
 
 # define "CXFLAGS" to give extra flags to CC.
 # e.g.  make CXFLAGS=-O to optimise
+CXFLAGS ?=-O2
 TCC = tcc
 UCLIBC_GCC = $(shell for nm in i386-uclibc-linux-gcc i386-uclibc-gcc; do which $$nm > /dev/null && { echo $$nm ; exit; } ; done; echo false No uclibc found )
 #DIET_GCC = diet gcc