d035c7010d989a18724e8e40a36f816b48757319
[feed/packages.git] / lang / python / micropython / patches / 020-mpy-cross-fix-flags.patch
1 --- a/mpy-cross/Makefile
2 +++ b/mpy-cross/Makefile
3 @@ -19,7 +19,7 @@ INC += -I$(TOP)
4 # compiler settings
5 CWARN = -Wall -Werror
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
10
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
15 endif
16 -LDFLAGS = $(LDFLAGS_MOD) $(LDFLAGS_ARCH) -lm $(LDFLAGS_EXTRA)
17 +LDFLAGS += $(LDFLAGS_MOD) $(LDFLAGS_ARCH) -lm $(LDFLAGS_EXTRA)
18
19 # source files
20 SRC_C = \