Skip to content

Commit 8afb9b3

Browse files
committed
Incorporate change in assignment logic suggested by dhylands
1 parent 1fae787 commit 8afb9b3

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

unix/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,16 @@ else
2929
COPT = -Os #-DNDEBUG
3030
endif
3131

32-
LDFLAGS = $(LDFLAGS_MOD) -lm -Wl,-Map=$@.map,--cref $(LDFLAGS_EXTRA)
32+
LDFLAGS = $(LDFLAGS_MOD) -lm -Wl$(LDFLAGS_MAP_EXTRA) $(LDFLAGS_EXTRA)
3333
ifeq ($(UNAME_S),Darwin)
3434
# Force OSX to use clang even if gcc is present, value set in mkenv.mk
3535
# must be ovewritten here to avoid breaking stmhal build on OSX
3636
CC = clang
3737
# Use clang syntax for LDFLAGS
38-
LDFLAGS = $(LDFLAGS_MOD) -lm -Wl,-map,$@.map $(LDFLAGS_EXTRA)
38+
LDFLAGS_MAP_EXTRA = ,-map,$@.map
39+
else
40+
# Use gcc syntax
41+
LDFLAGS_MAP_EXTRA = ,-Map=$@.map,--cref
3942
endif
4043

4144
ifeq ($(MICROPY_FORCE_32BIT),1)

0 commit comments

Comments
 (0)