diff options
author | Anton Sokolchenko <wsevendays@gmail.com> | 2016-07-09 02:02:02 +0300 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-07-11 12:12:07 +0100 |
commit | e9f3fb76620fd2f9a392f2e879431843c27024cc (patch) | |
tree | db5b6a0bb5d7ef2368435d4c6c26ccaa16c79dec | |
parent | 9626662819ebd677106ba2655c4370912bef8588 (diff) | |
download | micropython-e9f3fb76620fd2f9a392f2e879431843c27024cc.tar.gz micropython-e9f3fb76620fd2f9a392f2e879431843c27024cc.zip |
mpy-cross: Fix Makefile to handle gc-sections linker flags on OS X.
-rw-r--r-- | mpy-cross/Makefile | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mpy-cross/Makefile b/mpy-cross/Makefile index da4d4646a7..71b78c27c8 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 = \ |