Cross-compiled wxGTK installs a CHOST-prefixed wx-config file, so it is not located by the eclass. The eclass also needs to look for it in SYSROOT so it uses the version built for the target system.
Created attachment 689166 [details, diff] fix.patch
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77ff3a67bee9dcefd5f0fc9eb074f4e500c8a9ef commit 77ff3a67bee9dcefd5f0fc9eb074f4e500c8a9ef Author: David Michael <fedora.dm0@gmail.com> AuthorDate: 2021-03-26 20:31:36 +0000 Commit: David Seifert <soap@gentoo.org> CommitDate: 2021-03-26 20:31:36 +0000 wxwidgets.eclass: fix cross-compiling The wx-config file name is prefixed with CHOST when cross-compiling wxGTK, so test for that path's existence as well. It also needs to be used from SYSROOT. Closes: https://bugs.gentoo.org/774018 Signed-off-by: David Michael <fedora.dm0@gmail.com> Signed-off-by: David Seifert <soap@gentoo.org> eclass/wxwidgets.eclass | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-)