Pass linker flags to the linker only once

Before, `make_gcc_arm` would export a makefile with both linker flags in
the `$(LD)` make variable and the `$(LD_FLAGS)` make variable. This only
affected GCC based makefiles, as the `$(LD)` make variable would only
contain the linker for both ARMC5 and IAR. This patch enforces the
`$(LD)` behavior of ARMC5 and IAR on all of the compilers by truncating
`$(LD)` to just the command
pull/3745/head
Jimmy Brisson 2017-02-10 11:28:02 -06:00
parent 29cfee4ae7
commit 7d75e277e7
1 changed files with 1 additions and 3 deletions

View File

@ -78,9 +78,7 @@ class Makefile(Exporter):
'asm_cmd': " ".join(["\'" + part + "\'" for part
in ([basename(self.toolchain.asm[0])] +
self.toolchain.asm[1:])]),
'ld_cmd': " ".join(["\'" + part + "\'" for part
in ([basename(self.toolchain.ld[0])] +
self.toolchain.ld[1:])]),
'ld_cmd': "\'" + basename(self.toolchain.ld[0]) + "\'",
'elf2bin_cmd': "\'" + basename(self.toolchain.elf2bin) + "\'",
'link_script_ext': self.toolchain.LINKER_EXT,
'link_script_option': self.LINK_SCRIPT_OPTION,