From 043dc4dd0cc4679fca96a2d36f1bf7cf1656606f Mon Sep 17 00:00:00 2001 From: Jan Willeke Date: Mon, 10 Jan 2022 13:53:44 +0100 Subject: [PATCH] minimal/Makefile: Set linker to $(CC). Changed 'LD = gcc' too 'LD = $(CC)' to support other compilers. Signed-off-by: Jan Willeke --- ports/minimal/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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