News for hackers. Stuff that matters.
Re:Single binary executable packages by pjc50 on Wednesday March 02, 2022 @11:47AM (#30529381)
> If you write C and don't know how to cross compile your code you shouldn't be writing it.

Cross-compiling in C is always miserable to set up, especially around the area of libraries. And it gets worse if one of the compilers is from a different vendor.

Re:Single binary executable packages by qbasic_forever on Wednesday March 02, 2022 @01:28PM (#30530884)
I don't think people realize just how much work tools like crosstool NG do to take away the pain of cross compiling. I remember trying to cross compile stuff in the early 2000s before all that tooling existed and.... oh boy, it was nightmare fuel. A good docker container setup makes it even easier these days.
Re:Single binary executable packages by ranger_danger on Wednesday March 02, 2022 @10:39PM (#30536869)
I think clang (https://clang.llvm.org/docs/CrossCompilation.html) even makes crosstool largely irrelevant these days. Just specify your desired triplet on the command-line and off you go cross-compiling (mostly) effortlessly without having to build an entirely new toolchain. It can even masquerade as the MSVC compiler if you so desire.