use HOST_STATIC_LINKING instead of hardcoding -static

SVN-Revision: 33140
This commit is contained in:
Jo-Philipp Wich
2012-08-12 12:34:30 +00:00
parent 095fe8743b
commit cf1698c637
23 changed files with 27 additions and 25 deletions

View File

@@ -12,7 +12,7 @@ include $(INCLUDE_DIR)/host-build.mk
include $(INCLUDE_DIR)/kernel.mk
define cc
$(HOSTCC) $(HOST_CFLAGS) -include endian.h -static -o $(HOST_BUILD_DIR)/bin/$(firstword $(1)) $(foreach src,$(1),src/$(src).c) $(2)
$(HOSTCC) $(HOST_CFLAGS) -include endian.h $(HOST_STATIC_LINKING) -o $(HOST_BUILD_DIR)/bin/$(firstword $(1)) $(foreach src,$(1),src/$(src).c) $(2)
endef
define Host/Compile