summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Bar-Lev <alonbl@gentoo.org>2018-10-06 02:29:02 +0300
committerAlon Bar-Lev <alonbl@gentoo.org>2018-10-06 03:32:18 +0300
commit0033b2f1349d625cc3db693d75206f3a80c09f8b (patch)
tree5b4fd270100472acf41996d712c961e49fb9acf5 /dev-libs/libgpg-error
parentnet-libs/gnutls: support cross-compile (diff)
downloadgentoo-0033b2f1349d625cc3db693d75206f3a80c09f8b.tar.gz
gentoo-0033b2f1349d625cc3db693d75206f3a80c09f8b.tar.bz2
gentoo-0033b2f1349d625cc3db693d75206f3a80c09f8b.zip
dev-libs/libgpg-error: support cross-compile
Signed-off-by: Alon Bar-Lev <alonbl@gentoo.org> Package-Manager: Portage-2.3.49, Repoman-2.3.10
Diffstat (limited to 'dev-libs/libgpg-error')
-rw-r--r--dev-libs/libgpg-error/libgpg-error-1.32-r1.ebuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/dev-libs/libgpg-error/libgpg-error-1.32-r1.ebuild b/dev-libs/libgpg-error/libgpg-error-1.32-r1.ebuild
index 054a46495840..92257a968e2a 100644
--- a/dev-libs/libgpg-error/libgpg-error-1.32-r1.ebuild
+++ b/dev-libs/libgpg-error/libgpg-error-1.32-r1.ebuild
@@ -38,7 +38,8 @@ multilib_src_configure() {
$(use_enable nls) \
$(use_enable static-libs static) \
--enable-threads \
- CC_FOR_BUILD="$(tc-getBUILD_CC)"
+ CC_FOR_BUILD="$(tc-getBUILD_CC)" \
+ $("${S}/configure" --help | grep -- --with-.*-prefix | sed -e 's/prefix.*/prefix/' -e "s#\$#=${EROOT}/usr#")
}
multilib_src_install_all() {