commit:     239671750ed95f648027a2b32c3c57380658e296
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Tue May 20 22:52:49 2025 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Tue May 20 22:55:41 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23967175

wine.eclass: fix 32bit-only builds on amd64

Oversight, (at least) needed to set PKG_CONFIG_PATH properly.

>=wine-10 can figure it out by itself, but still want to keep
this to setup everything properly rather than leave it to fate.

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 eclass/wine.eclass | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/eclass/wine.eclass b/eclass/wine.eclass
index 6d4de6d87183..6561e4019568 100644
--- a/eclass/wine.eclass
+++ b/eclass/wine.eclass
@@ -300,6 +300,12 @@ wine_src_configure() {
                )
                conf+=( ${archs:+--enable-archs="${archs[*]}"} )
 
+               if use amd64 && use !abi_x86_64; then
+                       # same as above for 32bit-only on 64bit (allowed for 
wine)
+                       conf+=( TARGETFLAGS=-m32 )
+                       multilib_toolchain_setup x86
+               fi
+
                econf "${conf[@]}" "${wineconfargs[@]}"
        fi
 }

Reply via email to