mpy-cross: Fix Makefile to handle gc-sections linker flags on OS X.

pull/2234/head
Anton Sokolchenko 2016-07-09 02:02:02 +03:00 zatwierdzone przez Damien George
rodzic 9626662819
commit e9f3fb7662
1 zmienionych plików z 2 dodań i 3 usunięć

Wyświetl plik

@ -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 = \