Build-system support for creating host tools

This commit is contained in:
Norman Feske
2014-05-15 12:09:16 +02:00
parent de65c3f7cc
commit bcbb0dabf5
4 changed files with 21 additions and 4 deletions

View File

@@ -181,6 +181,11 @@ endif
LINK_ITEMS := $(OBJECTS) $(STATIC_LIBS) $(SHARED_LIBS)
SHORT_LINK_ITEMS := $(subst $(LIB_CACHE_DIR),$$libs,$(LINK_ITEMS))
#
# Trigger the build of host tools
#
$(LINK_ITEMS) $(TARGET): $(HOST_TOOLS)
LD_CMD += -Wl,--whole-archive -Wl,--start-group
LD_CMD += $(SHORT_LINK_ITEMS)
LD_CMD += $(EXT_OBJECTS)