summaryrefslogtreecommitdiff
path: root/mk/host-bottom.mk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2014-12-22 10:06:53 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2014-12-22 10:06:53 +0100
commitca20ba3f2c540844a3627dc1b2bab2b73462b21b (patch)
treeabcd9296cc296a6a52ce4e893ba7487042d14bf7 /mk/host-bottom.mk
parent2cb031f604d73d19abc369ee777fbc366e86e041 (diff)
postfix for -config files
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}: