Append EXTRA_CFLAGS to CFLAGS so that additional flags can be applied to the compiler. Signed-off-by: Leo Yan --- tools/spi/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/spi/Makefile b/tools/spi/Makefile index 7fccd245a53515ab019529c8e5e91a044eaaa68b..1e3b3f91634cc2561c434c02f812942fa881685f 100644 --- a/tools/spi/Makefile +++ b/tools/spi/Makefile @@ -12,6 +12,7 @@ endif # (this improves performance and avoids hard-to-debug behaviour); MAKEFLAGS += -r +CFLAGS += $(EXTRA_CFLAGS) CFLAGS += -O2 -Wall -g -D_GNU_SOURCE -I$(OUTPUT)include ALL_TARGETS := spidev_test spidev_fdx -- 2.34.1