minimal/Makefile: Set linker to $(CC).
Changed 'LD = gcc' too 'LD = $(CC)' to support other compilers. Signed-off-by: Jan Willeke <willeke@smartmote.de>
This commit is contained in:
parent
fbc96009f8
commit
043dc4dd0c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue