commit:     0033b2f1349d625cc3db693d75206f3a80c09f8b
Author:     Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
AuthorDate: Fri Oct  5 23:29:02 2018 +0000
Commit:     Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
CommitDate: Sat Oct  6 00:32:18 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0033b2f1

dev-libs/libgpg-error: support cross-compile

Signed-off-by: Alon Bar-Lev <alonbl <AT> gentoo.org>
Package-Manager: Portage-2.3.49, Repoman-2.3.10

 dev-libs/libgpg-error/libgpg-error-1.32-r1.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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 054a4649584..92257a968e2 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() {

Reply via email to