summaryrefslogtreecommitdiff
path: root/toolchain/sstrip
diff options
context:
space:
mode:
Diffstat (limited to 'toolchain/sstrip')
-rw-r--r--toolchain/sstrip/sstrip.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/toolchain/sstrip/sstrip.mk b/toolchain/sstrip/sstrip.mk
index cb1bed534..1121521a3 100644
--- a/toolchain/sstrip/sstrip.mk
+++ b/toolchain/sstrip/sstrip.mk
@@ -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)