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
, then dpkg-buildpackage
using a specific toolchain?
I'm guessing [--target-arch
](https://man7.org/linux/man-pages/man1/dpkg-buildpackage.1.html) 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
)?
Asked by Stewart
(15631 rep)
Aug 26, 2022, 02:39 PM
Last activity: Aug 26, 2022, 03:40 PM
Last activity: Aug 26, 2022, 03:40 PM