build: Respect CPPFLAGS override

so that e.g. make CPPFLAGS=-DSOMETHING works.
This commit is contained in:
Michael Matz 2016-10-17 20:26:38 +02:00
parent 235711f3d3
commit a158260e84

View File

@ -7,6 +7,8 @@ include $(TOP)/config.mak
VPATH = $(TOPSRC)
CFLAGS += -I$(TOP)
CFLAGS += $(CPPFLAGS)
ifeq (-$(findstring gcc,$(CC))-,-gcc-)
ifeq (-$(GCC_MAJOR)-$(findstring $(GCC_MINOR),56789)-,-4--)
CFLAGS += -D_FORTIFY_SOURCE=0