Yes, this really works! By default, the configure script shoves
everything in the same standalone directory for Windows, hence the
need to specify more paths. It doesn't work from a standalone
directory unless you build it statically anyway because it can't find
the dependent DLLs in /usr/bin.
Package-Manager: Portage-2.3.76, Repoman-2.3.17
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Signed-off-by: Matthias Maier <tamiko@gentoo.org>
default
- # Fix ld and objcopy being called directly
- tc-export AR LD OBJCOPY
+ # Use correct toolchain to fix cross-compiling
+ tc-export AR LD NM OBJCOPY PKG_CONFIG
+ export WINDRES=${CHOST}-windres
# Verbose builds
MAKEOPTS+=" V=1"
local conf_opts=(
--prefix=/usr
--sysconfdir=/etc
+ --bindir=/usr/bin
--libdir=/usr/$(get_libdir)
+ --datadir=/usr/share
--docdir=/usr/share/doc/${PF}/html
+ --mandir=/usr/share/man
+ --with-confsuffix=/qemu
+ --localstatedir=/var
--disable-bsd-user
--disable-guest-agent
--disable-strip