Re:Single binary executable packages
by allisdust on Wednesday March 02, 2022 @11:46AM
(#30529372)
That rust comment does sound weird. It's one of the easiest to compile across platforms. All you need is the rust toolchain and may be openssl sometimes.
[ Parent
| on HN ]
The easiest to cross compile would be golang, it’s as easy as setting 1-2 environment variables. Last I used rust it required tool chain setup, which if you’re not familiar with the process and be quite difficult.
I tried cross-compiling a Rust project from ARM macOS host to ARM Linux target, compiling source files is still fine, but during linking stage it threw lots of lots of errors. And it’s a pure Rust project without any system library dependencies. Seems that the system linker also needs to support the target platform, or cross compiling won’t work.
Re:Single binary executable packages
by marcosdumay on Wednesday March 02, 2022 @01:46PM
(#30531116)
Rust has the option of using a different linker for each target platform.
But of course, your linker must support it. I don't know where to get a linker for Linux ARM in macOS. On Debian it's apt install.