dev-libs/libgcrypt: support cross-compile

Signed-off-by: Alon Bar-Lev <alonbl@gentoo.org>
Package-Manager: Portage-2.3.49, Repoman-2.3.10
This commit is contained in:
Alon Bar-Lev
2018-10-06 02:30:01 +03:00
parent 0033b2f134
commit ec4dafe51c

View File

@@ -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() {