Is it though ? I've seen a lot of programs using 1 or 2 functions from a library, but, nevertheless, linking the whole library.
Doing an ldd in /usr/bin is an exercise in horror.
Is it though ? I've seen a lot of programs using 1 or 2 functions from a library, but, nevertheless, linking the whole library.
Doing an ldd in /usr/bin is an exercise in horror.
This feels like something a compiler could or should solve.
I use C++ and make use of the excellent Boost library. The library is gigantic, but only the parts I use make it into my binary.
Exactly. Because it's easier.
Of course it would be much better to split that library up into smaller libraries so you only linked the part you actually needed, but then people on HN will go crazy about "thousands of dependencies".
Having larger shared libraries also means you no longer have to statically link that included code into multiple separate executables.