summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Willeke <willeke@smartmote.de>2022-01-10 13:53:44 +0100
committerDamien George <damien@micropython.org>2022-11-15 17:09:37 +1100
commit043dc4dd0cc4679fca96a2d36f1bf7cf1656606f (patch)
tree35dc55edb70384541033b529929022bac6f3e25f
parentfbc96009f8e97abf78fe447f644e5ca8ca2bb05f (diff)
minimal/Makefile: Set linker to $(CC).
Changed 'LD = gcc' too 'LD = $(CC)' to support other compilers. Signed-off-by: Jan Willeke <willeke@smartmote.de>
-rw-r--r--ports/minimal/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/minimal/Makefile b/ports/minimal/Makefile
index 1a20412e0..050c4ddf5 100644
--- a/ports/minimal/Makefile
+++ b/ports/minimal/Makefile
@@ -26,7 +26,7 @@ CFLAGS_CORTEX_M4 = -mthumb -mtune=cortex-m4 -mcpu=cortex-m4 -msoft-float -fsingl
CFLAGS += $(INC) -Wall -Werror -std=c99 -nostdlib $(CFLAGS_CORTEX_M4) $(COPT)
LDFLAGS += -nostdlib -T stm32f405.ld -Map=$@.map --cref --gc-sections
else
-LD = gcc
+LD = $(CC)
CFLAGS += $(INC) -Wall -Werror -Wdouble-promotion -Wfloat-conversion -std=c99 $(COPT)
LDFLAGS += -Wl,-Map=$@.map,--cref -Wl,--gc-sections
endif