Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions mpy-cross/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ CFLAGS += -fdata-sections -ffunction-sections -fno-asynchronous-unwind-tables
# CIRCUITPY-CHANGE
CFLAGS += -DCIRCUITPY

# Build a static executable.
# Useful for builds that must run on multiple operating system versions. Used for published mpy-cross versions.
ifdef STATIC_BUILD
CFLAGS += -static -static-libgcc -static-libstdc++
endif

# Debugging/Optimization
ifdef DEBUG
CFLAGS += -g
Expand All @@ -47,6 +53,10 @@ LDFLAGS_ARCH = -Wl,[email protected],--cref -Wl,--gc-sections
endif
LDFLAGS += $(LDFLAGS_MOD) $(LDFLAGS_ARCH) -lm $(LDFLAGS_EXTRA)

ifdef STATIC_BUILD
LDFLAGS += -static -static-libgcc -static-libstdc++
endif

# source files
# CIRCUITPY-CHANGE: extra files
SRC_C = \
Expand Down