summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJes Sorensen <jsorensen@fb.com>2017-04-21 18:06:35 +0200
committerJes Sorensen <jsorensen@fb.com>2017-04-21 18:06:35 +0200
commit17d80e6eb64230593ee8d599b94005d303eb58ae (patch)
tree138bece4634d09f0a24b77041f19980b2e6c92ac
parentQuery: Quiet gcc since it cannot know errno != 0 in this case (diff)
downloadmdadm-17d80e6eb64230593ee8d599b94005d303eb58ae.tar.xz
mdadm-17d80e6eb64230593ee8d599b94005d303eb58ae.zip
Makefile: Default to -O2 optimization
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 56558121..68506961 100644
--- 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