From ca20ba3f2c540844a3627dc1b2bab2b73462b21b Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 22 Dec 2014 10:06:53 +0100 Subject: postfix for -config files --- mk/host-bottom.mk | 5 +++++ 1 file changed, 5 insertions(+) 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}: -- cgit v1.2.3