dev-libs/libgpg-error: support cross-compile
authorAlon Bar-Lev <alonbl@gentoo.org>
Fri, 5 Oct 2018 23:29:02 +0000 (02:29 +0300)
committerAlon Bar-Lev <alonbl@gentoo.org>
Sat, 6 Oct 2018 00:32:18 +0000 (03:32 +0300)
Signed-off-by: Alon Bar-Lev <alonbl@gentoo.org>
Package-Manager: Portage-2.3.49, Repoman-2.3.10

dev-libs/libgpg-error/libgpg-error-1.32-r1.ebuild

index 054a464958404dc8380ff6fe86be4c25f1179398..92257a968e2a2f44642e071c901f2cda6a3c5146 100644 (file)
@@ -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() {