3 ms·
It's really a decision you have to do per-library. For something like SDL that has a stable ABI while providing user-visible improvements in newer versions, dy
by account42 6y ago
It's really a decision you have to do per-library.
For something like SDL that has a stable ABI while providing user-visible improvements in newer versions, dynamic linking makes sense. SDL's solution isn't only for static linking but also for bundled dynamically loaded SDL copies. I am not really convinced that SDL's approach is perfect though as anyone statically linking SDL can just disable this functionality and this feature has already caused problems requiring you to manually substitute the loaded libSDL.
For libs that don't interact with the system, dynamic linking does not really provide an advantage for binaries that are distributed on their own.