]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Examples: Properly append LDFLAGS to LD command
authorMarek Vasut <marex@denx.de>
Mon, 5 Mar 2012 23:44:22 +0000 (00:44 +0100)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Mon, 26 Mar 2012 21:09:25 +0000 (23:09 +0200)
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>
examples/standalone/Makefile

index e23865b4b020ba0781335cf81c82ae2168630702..baaa2fbe4def0c7c9707603293a75287daf6d182 100644 (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