1 Makefile: append the CFLAGS to existing ones
3 Allow the user to pass custom CFLAGS (eg. optimisation flags).
5 Do not use EXTRA_CFLAGS, append to existing CFLAGS with += (Arnout)
7 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
8 Cc: Arnout Vandecappelle <arnout@mind.be>
11 Patch not sent upstream.
13 Although not specific to buildroot, I am not sure this is the best
14 way to handle user-supplied CFLAGS.
16 diff --git a/Makefile b/Makefile
17 index 962f94eba661..bf6b317158cf 100644
20 @@ -16,9 +16,10 @@ LOCAL_VERSION =
23 CPPFLAGS = -I libfdt -I .
24 -WARNINGS = -Werror -Wall -Wpointer-arith -Wcast-qual -Wnested-externs \
25 +WARNINGS = -Wall -Wpointer-arith -Wcast-qual -Wnested-externs \
26 -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow
27 -CFLAGS = -g -Os -fPIC -Werror $(WARNINGS)
29 +CFLAGS += -fPIC $(WARNINGS)