summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2012-03-05 23:44:22 +0100
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2012-10-15 15:38:26 +0200
commit3f89791962ef22067a170024136b2009e44bdb44 (patch)
tree905957f5191f22d039a41e23582f4efd6b186fdb
parent5e5a70824a7d521068c64857213857dd2aa12787 (diff)
Examples: Properly append LDFLAGS to LD command
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>
-rw-r--r--examples/standalone/Makefile2
1 files changed, 1 insertions, 1 deletions
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