Skip to content

Commit

Permalink
mpy-cross/Makefile: Respect existing CFLAGS and LDFLAGS.
Browse files Browse the repository at this point in the history
  • Loading branch information
yangfl authored and dpgeorge committed Aug 8, 2022
1 parent 6804b6f commit d7ef901
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mpy-cross/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ INC += -I$(TOP)
# compiler settings
CWARN = -Wall -Werror
CWARN += -Wextra -Wno-unused-parameter -Wpointer-arith
CFLAGS = $(INC) $(CWARN) -std=gnu99 $(CFLAGS_MOD) $(COPT) $(CFLAGS_EXTRA)
CFLAGS += $(INC) $(CWARN) -std=gnu99 $(CFLAGS_MOD) $(COPT) $(CFLAGS_EXTRA)
CFLAGS += -fdata-sections -ffunction-sections -fno-asynchronous-unwind-tables

# Debugging/Optimization
Expand All @@ -42,7 +42,7 @@ else
# Use gcc syntax for map file
LDFLAGS_ARCH = -Wl,-Map=$@.map,--cref -Wl,--gc-sections
endif
LDFLAGS = $(LDFLAGS_MOD) $(LDFLAGS_ARCH) -lm $(LDFLAGS_EXTRA)
LDFLAGS += $(LDFLAGS_MOD) $(LDFLAGS_ARCH) -lm $(LDFLAGS_EXTRA)

# source files
SRC_C = \
Expand Down

0 comments on commit d7ef901

Please sign in to comment.