I work in a Debian environment and it works great. If I want to build a project, I sudo apt install the build dependencies, and build.
However, I'd like to cross-compile from a Debian environment using mingw-w64. I don't have any -w64 versions of my build-dependencies, so I'll have to build those.
Is there a method to apt source <package>, then dpkg-buildpackage using a specific toolchain?
I'm guessing --target-arch is close to what I need, but I suspect w64 isn't a supported architecture.
I see http://clang.debian.net describes a method to build the debian archive with clang involving:
cd /usr/bin
rm /usr/bin/{g++,gcc,cpp}
ln -s /usr/bin/clang++ /usr/bin/g++
ln -s /usr/bin/clang /usr/bin/{gcc,cpp}
Is that a reasonable method to accomplish this? (but mingw instead of clang)?