From: Marek Vasut Date: Mon, 5 Mar 2012 23:44:22 +0000 (+0100) Subject: Examples: Properly append LDFLAGS to LD command X-Git-Tag: v2012.04-rc1~19^2~120 X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=commitdiff_plain;h=e0e7f3b210ce553c6caab05b71891a1279eb551e 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 Cc: Bryan Hundven Cc: Michael Schwingen --- diff --git a/examples/standalone/Makefile b/examples/standalone/Makefile index e23865b4b0..baaa2fbe4d 100644 --- a/examples/standalone/Makefile +++ b/examples/standalone/Makefile @@ -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