mirror of
https://github.com/mirror/tinycc.git
synced 2025-03-26 12:04:59 +08:00
build: Respect CPPFLAGS override
so that e.g. make CPPFLAGS=-DSOMETHING works.
This commit is contained in:
parent
235711f3d3
commit
a158260e84
2
Makefile
2
Makefile
@ -7,6 +7,8 @@ include $(TOP)/config.mak
|
|||||||
VPATH = $(TOPSRC)
|
VPATH = $(TOPSRC)
|
||||||
CFLAGS += -I$(TOP)
|
CFLAGS += -I$(TOP)
|
||||||
|
|
||||||
|
CFLAGS += $(CPPFLAGS)
|
||||||
|
|
||||||
ifeq (-$(findstring gcc,$(CC))-,-gcc-)
|
ifeq (-$(findstring gcc,$(CC))-,-gcc-)
|
||||||
ifeq (-$(GCC_MAJOR)-$(findstring $(GCC_MINOR),56789)-,-4--)
|
ifeq (-$(GCC_MAJOR)-$(findstring $(GCC_MINOR),56789)-,-4--)
|
||||||
CFLAGS += -D_FORTIFY_SOURCE=0
|
CFLAGS += -D_FORTIFY_SOURCE=0
|
||||||
|
Loading…
Reference in New Issue
Block a user