Hacker News new | ask | show | jobs
by hdhrnnrkrkf 1880 days ago
Bundling shared libraries is also used in big apps for faster build times and for more physical separation between modules.

Arguably the final release version could be statically linked, but that could be subtly different than what the devs are using.

1 comments

For these cases, you can just use a modern build system (Bazel) and incremental linker (lld / gold).
Not everyone is in a position to vendor source for all their dependencies and use a new build system to solve a solved problem.
I do the same with good ol' cmake, I have a "developer" preset which will build my app with clang, lld, PCH, split into small shared libraries. And a release preset where everything is statically linked