Fix bug with the HOST_AR.

Change-Id: I28ab86d3b6e7cbd4391e2640cf8e2be269b03e76
This commit is contained in:
Ying Wang
2012-02-23 16:27:43 -08:00
parent a7a9b948e8
commit 92ca609cd1

View File

@@ -68,8 +68,8 @@ define _darwin-extract-and-include-single-whole-static-lib
@echo "preparing StaticLib: $(PRIVATE_MODULE) [including $(1)]"
$(hide) ldir=$(PRIVATE_INTERMEDIATES_DIR)/WHOLE/$(basename $(notdir $(1)))_objs;\
mkdir -p $$ldir; \
for f in `$(TARGET_AR) t $(1)`; do \
$(TARGET_AR) p $(1) $$f > $$ldir/$$f; \
for f in `$(HOST_AR) t $(1)`; do \
$(HOST_AR) p $(1) $$f > $$ldir/$$f; \
done ;
endef