summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mpy-cross/Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/mpy-cross/Makefile b/mpy-cross/Makefile
index da4d4646a..71b78c27c 100644
--- a/mpy-cross/Makefile
+++ b/mpy-cross/Makefile
@@ -37,13 +37,12 @@ endif
ifeq ($(UNAME_S),Darwin)
CC = clang
# Use clang syntax for map file
-LDFLAGS_ARCH = -Wl,-map,$@.map
+LDFLAGS_ARCH = -Wl,-map,$@.map -Wl,-dead_strip
else
# Use gcc syntax for map file
-LDFLAGS_ARCH = -Wl,-Map=$@.map,--cref
+LDFLAGS_ARCH = -Wl,-Map=$@.map,--cref -Wl,--gc-sections
endif
LDFLAGS = $(LDFLAGS_MOD) $(LDFLAGS_ARCH) -lm $(LDFLAGS_EXTRA)
-LDFLAGS += -Wl,--gc-sections
# source files
SRC_C = \