Examples: Properly append LDFLAGS to LD command

The LD command in examples/standalone/Makefile ignored platform specific
LDFLAGS setup. Pass these LDFLAGS to the command.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Bryan Hundven <bryanhundven@gmail.com>
Cc: Michael Schwingen <rincewind@discworld.dascon.de>
This commit is contained in:
Marek Vasut 2012-03-06 00:44:22 +01:00 committed by Albert ARIBAUD
parent 763cf0a3d2
commit e0e7f3b210
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ $(LIB): $(obj).depend $(LIBOBJS)
$(ELF):
$(obj)%: $(obj)%.o $(LIB)
$(LD) -g -Ttext $(CONFIG_STANDALONE_LOAD_ADDR) \
$(LD) $(LDFLAGS) -g -Ttext $(CONFIG_STANDALONE_LOAD_ADDR) \
-o $@ -e $(SYM_PREFIX)$(notdir $(<:.o=)) $< $(LIB) \
-L$(gcclibdir) -lgcc