Patchwork [v9,01/14] build: Fix linkage of QEMU_PROG

login
register
mail settings
Submitter =?utf-8?Q?Llu=C3=ADs?=
Date Aug. 31, 2011, 6:30 p.m.
Message ID <20110831183030.849.68669.stgit@ginnungagap.bsc.es>
Download mbox | patch
Permalink /patch/112643/
State New
Headers show

Comments

=?utf-8?Q?Llu=C3=ADs?= - Aug. 31, 2011, 6:30 p.m.
Using '$^' to establish the files to link with will remove any repeated entries
in the list of dependencies.

Signed-off-by: LluĂ­s Vilanova <vilanova@ac.upc.edu>
---
 Makefile.target |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/Makefile.target b/Makefile.target
index 07af4d4..62ddfc9 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -398,7 +398,7 @@  obj-y += $(addprefix ../, $(trace-obj-y))
 obj-$(CONFIG_GDBSTUB_XML) += gdbstub-xml.o
 
 $(QEMU_PROG): $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y)
-	$(call LINK,$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y))
+	$(call LINK,$^)
 
 
 gdbstub-xml.c: $(TARGET_XML_FILES) $(SRC_PATH)/scripts/feature_to_c.sh