We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9626662 commit e9f3fb7Copy full SHA for e9f3fb7
1 file changed
mpy-cross/Makefile
@@ -37,13 +37,12 @@ endif
37
ifeq ($(UNAME_S),Darwin)
38
CC = clang
39
# Use clang syntax for map file
40
-LDFLAGS_ARCH = -Wl,-map,$@.map
+LDFLAGS_ARCH = -Wl,-map,$@.map -Wl,-dead_strip
41
else
42
# Use gcc syntax for map file
43
-LDFLAGS_ARCH = -Wl,-Map=$@.map,--cref
+LDFLAGS_ARCH = -Wl,-Map=$@.map,--cref -Wl,--gc-sections
44
endif
45
LDFLAGS = $(LDFLAGS_MOD) $(LDFLAGS_ARCH) -lm $(LDFLAGS_EXTRA)
46
-LDFLAGS += -Wl,--gc-sections
47
48
# source files
49
SRC_C = \
0 commit comments