From: Alon Bar-Lev Date: Fri, 5 Oct 2018 23:30:01 +0000 (+0300) Subject: dev-libs/libgcrypt: support cross-compile X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ec4dafe51ce23971d397b97091d69fe09ff86362;p=gentoo.git dev-libs/libgcrypt: support cross-compile Signed-off-by: Alon Bar-Lev Package-Manager: Portage-2.3.49, Repoman-2.3.10 --- diff --git a/dev-libs/libgcrypt/libgcrypt-1.8.3-r1.ebuild b/dev-libs/libgcrypt/libgcrypt-1.8.3-r1.ebuild index 4f3b5d971968..02488a6c3c14 100644 --- a/dev-libs/libgcrypt/libgcrypt-1.8.3-r1.ebuild +++ b/dev-libs/libgcrypt/libgcrypt-1.8.3-r1.ebuild @@ -56,7 +56,8 @@ multilib_src_configure() { GPG_ERROR_CONFIG="${EROOT}/usr/bin/${CHOST}-gpg-error-config" ) - ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" \ + $("${S}/configure" --help | grep -- --with-.*-prefix | sed -e 's/prefix.*/prefix/' -e "s#\$#=${EROOT}/usr#") } multilib_src_compile() {