Re:Zig cc: A drop-in replacement for GCC/Clang
by Hello71 on Tuesday March 24, 2020 @10:13PM
(#22681377)
I don't see how zig cc would help with that. Your distribution probably also doesn't ship all the source files for your packages either, and there's no other way to statically link.
[ Parent
| on HN ]
Re:Zig cc: A drop-in replacement for GCC/Clang
by LessDmesg on Wednesday March 25, 2020 @02:43AM
(#22682492)
Gentoo does.
Re:Zig cc: A drop-in replacement for GCC/Clang
by Hello71 on Wednesday March 25, 2020 @08:00AM
(#22683747)
I've used Gentoo for almost a decade now, and no, that's not true. emerge doesn't just randomly keep source files on disk, and certainly not in a form easy to link to. In fact, Gentoo is worse than Debian for static linking, because not all packages have IUSE=static-libs. If it doesn't, you need to patch that ebuild and potentially many dependencies to support it. On the other hand, on Debian, the standard is for -dev packages to come with both headers and static libraries.