summaryrefslogtreecommitdiff
path: root/mk/host-bottom.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/host-bottom.mk')
-rw-r--r--mk/host-bottom.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/mk/host-bottom.mk b/mk/host-bottom.mk
index 11c2aae26..303e3a93c 100644
--- a/mk/host-bottom.mk
+++ b/mk/host-bottom.mk
@@ -106,6 +106,11 @@ ifeq (${HOST_STYLE},manual)
endif
env ${HOST_MAKE_ENV} ${MAKE} hostpost-install $(MAKE_TRACE)
@find $(STAGING_HOST_DIR) -name \*.la -exec rm {} \;
+ @for a in $(STAGING_HOST_DIR)/usr/bin/*-config; do \
+ [[ -e $$a ]] || continue; \
+ $(SED) "s,^prefix=.*,prefix=$(STAGING_HOST_DIR)/usr," $$a; \
+ chmod u+x $(STAGING_HOST_DIR)/usr/bin/$$(basename $$a); \
+ done
@touch $@
${_HOST_COOKIE}: