Shared libraries
Shared libraries
Posted Nov 24, 2025 18:07 UTC (Mon) by Wol (subscriber, #4433)In reply to: Shared libraries by bluca
Parent article: APT Rust requirement raises questions
> Then the future is shite
Or you go back to what I was doing over 40 years ago, when a library was just that ...
Yes you'll need some thought about how to update it into the modern world, but you static link and your library is a bunch of .o's that get copied in.
Yes you need to rebuild your applications, but the compile load is so much lower.
And if you really want to sort-of-merge your compiler and linker, okay you won't be able to mix-n-match compilers in all likelihood, but instead of .o's you compile the library to intermediate compiler representation, optimise whatever hell you can out of it, and then dump that into a .lib file that the compiler can pull into the application.
Okay, you lose the ability to just drop in a new fixed library, that fixes all your apps in one hit, but how well does that really work in practice?
Cheers,
Wol
