1 --- a/mpy-cross/Makefile
2 +++ b/mpy-cross/Makefile
3 @@ -19,7 +19,7 @@ INC += -I$(TOP)
6 CWARN += -Wextra -Wno-unused-parameter -Wpointer-arith
7 -CFLAGS = $(INC) $(CWARN) -std=gnu99 $(CFLAGS_MOD) $(COPT) $(CFLAGS_EXTRA)
8 +CFLAGS += $(INC) $(CWARN) -std=gnu99 $(CFLAGS_MOD) $(COPT) $(CFLAGS_EXTRA)
9 CFLAGS += -fdata-sections -ffunction-sections -fno-asynchronous-unwind-tables
11 # Debugging/Optimization
12 @@ -42,7 +42,7 @@ else
13 # Use gcc syntax for map file
14 LDFLAGS_ARCH = -Wl,-Map=$@.map,--cref -Wl,--gc-sections
16 -LDFLAGS = $(LDFLAGS_MOD) $(LDFLAGS_ARCH) -lm $(LDFLAGS_EXTRA)
17 +LDFLAGS += $(LDFLAGS_MOD) $(LDFLAGS_ARCH) -lm $(LDFLAGS_EXTRA)