- fix building sstrip
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tue, 10 Jul 2007 11:34:22 +0000 (11:34 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tue, 10 Jul 2007 11:34:22 +0000 (11:34 -0000)
toolchain/sstrip/sstrip.mk

index cb1bed534c290579237cc5b0a7513bccc6c718c8..1121521a37fc20b54d32ec43e7da069386fa8f14 100644 (file)
@@ -15,11 +15,12 @@ SSTRIP_SOURCE_FILE:=$(TOPDIR)/toolchain/sstrip/sstrip.c
 SSTRIP_HOST:=$(STAGING_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-sstrip
 
 $(SSTRIP_HOST): $(SSTRIP_SOURCE_FILE)
+       -mkdir -p $(@D) $(STAGING_DIR)/usr/$(REAL_GNU_TARGET_NAME)/bin
+       $(HOSTCC) $(CFLAGS_FOR_BUILD) $(SSTRIP_SOURCE_FILE) -o $(SSTRIP_HOST)
        ln -snf ../../bin/$(REAL_GNU_TARGET_NAME)-sstrip \
                $(STAGING_DIR)/usr/$(REAL_GNU_TARGET_NAME)/bin/sstrip
        ln -snf $(REAL_GNU_TARGET_NAME)-sstrip \
                $(STAGING_DIR)/usr/bin/$(GNU_TARGET_NAME)-sstrip
-       $(HOSTCC) $(SSTRIP_SOURCE_FILE) -o $(SSTRIP_HOST)
 
 sstrip_host: $(SSTRIP_HOST)