Skip to content

Commit 043dc4d

Browse files
janwillekedpgeorge
authored andcommitted
minimal/Makefile: Set linker to $(CC).
Changed 'LD = gcc' too 'LD = $(CC)' to support other compilers. Signed-off-by: Jan Willeke <[email protected]>
1 parent fbc9600 commit 043dc4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/minimal/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ CFLAGS_CORTEX_M4 = -mthumb -mtune=cortex-m4 -mcpu=cortex-m4 -msoft-float -fsingl
2626
CFLAGS += $(INC) -Wall -Werror -std=c99 -nostdlib $(CFLAGS_CORTEX_M4) $(COPT)
2727
LDFLAGS += -nostdlib -T stm32f405.ld -Map=$@.map --cref --gc-sections
2828
else
29-
LD = gcc
29+
LD = $(CC)
3030
CFLAGS += $(INC) -Wall -Werror -Wdouble-promotion -Wfloat-conversion -std=c99 $(COPT)
3131
LDFLAGS += -Wl,-Map=$@.map,--cref -Wl,--gc-sections
3232
endif

0 commit comments

Comments
 (0)