summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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