3 ms·
But they only work with a subset of architectures (only x86_64 in this case) and a subset of OSs (Windows with GNU installed, Linux with GNU libraries including
by progval 7y ago
But they only work with a subset of architectures (only x86_64 in this case) and a subset of OSs (Windows with GNU installed, Linux with GNU libraries including libc and libgcc)
- swiley 7y ago>Linux with GNU That’s why he said static, although I’m not sure gcc will produce totally static binaries anymore.
- saagarjha 7y agogcc would be happy to, but glibc doesn't really like to be linked statically.
- _-___________-_ 7y agomusl, however, is happy to be!
- roller 7y agoRust on windows has targets for msvc or gnu. The MSVC integrates better with Visual Studio and other Microsoft libraries for development. One downside I've found is that it dynamically links against a msvcrt DLL. Which means you may need to download and install a Visual C++ Redistributable package to run. The gnu target seems to be fully static and run everywhere with no dependencies.