Skip to content

Commit 7cd46a1

Browse files
committed
unix: Add CFLAGS_EXTRA & LDFLAGS_EXTRA for command line usage.
The idea is that it should be possible to pass any additional params for experimentation without need to patch sources (and without need to deviate from or repeat baseline options).
1 parent 7e56e55 commit 7cd46a1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

unix/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ INC += -I$(BUILD)
1919

2020
# compiler settings
2121
CWARN = -Wall -Werror
22-
CFLAGS = $(INC) $(CWARN) -ansi -std=gnu99 -DUNIX $(CFLAGS_MOD) $(COPT)
22+
CFLAGS = $(INC) $(CWARN) -ansi -std=gnu99 -DUNIX $(CFLAGS_MOD) $(COPT) $(CFLAGS_EXTRA)
2323

2424
# Debugging/Optimization
2525
ifdef DEBUG
@@ -29,7 +29,7 @@ else
2929
COPT = -Os #-DNDEBUG
3030
endif
3131

32-
LDFLAGS = $(LDFLAGS_MOD) -lm -Wl,-Map=$@.map,--cref
32+
LDFLAGS = $(LDFLAGS_MOD) -lm -Wl,-Map=$@.map,--cref $(LDFLAGS_EXTRA)
3333

3434
ifeq ($(MICROPY_FORCE_32BIT),1)
3535
CFLAGS += -m32

0 commit comments

Comments
 (0)