- https://wiki.gentoo.org/wiki/Mingw
- https://wiki.gentoo.org/wiki/Custom_repository#Crossdev
- https://schlomp.space/tastytea/overlay
- https://blog.christiansegundo.com/eng/2018-8-1-dxvk-gentoo/
emerge -av crossdev
mkdir -p /var/db/repos/localrepo-crossdev/{profiles,metadata}
echo "crossdev" > /var/db/repos/localrepo-crossdev/profiles/repo_name
echo 'masters = gentoo' > /var/db/repos/localrepo-crossdev/metadata/layout.conf
chown -R portage:portage /var/db/repos/localrepo-crossdev/
Accept keywords:
/etc/portage/package.accept_keywords/mingw
cross-i686-w64-mingw32/mingw64-runtime ~amd64
cross-x86_64-w64-mingw32/mingw64-runtime ~amd64
Create toolchain:
crossdev -S x86_64-w64-mingw32
crossdev -S i686-w64-mingw32
/etc/portage/env/mingw-gcc.conf
:
EXTRA_ECONF="--enable-threads=posix"
Adjust USE flags:
/etc/portage/package.use/mingw
cross-i686-w64-mingw32/gcc -fortran -vtv -sanitize
cross-x86_64-w64-mingw32/gcc -fortran -vtv -sanitize
cross-i686-w64-mingw32/mingw64-runtime libraries
cross-x86_64-w64-mingw32/mingw64-runtime libraries
emerge -1 cross-i686-w64-mingw32/mingw64-runtime cross-x86_64-w64-mingw32/mingw64-runtime
emerge -1 cross-i686-w64-mingw32/gcc cross-x86_64-w64-mingw32/gcc