Re:“Shared libraries are not a good thing in general”
by hdhrnnrkrkf on Saturday May 01, 2021 @09:21PM
(#27011522)
DirectX is a bad example, it's now a part of Windows and you don't ship it anymore.
Re:“Shared libraries are not a good thing in general”
by MereInterest on Saturday May 01, 2021 @10:46PM
(#27011959)
Good point (and shows that I am not a video game developer). I had tried to pick DirectX as something that would follow fao_'s example of game developers. The point still holds in the general case, though as you pointed out, not in the case of DirectX in particular.
On the other hand, if I am static linking, then there are no other programs that could use the static library. (Or, rather, if they do, they have their own embedded copy.) The LTO is free to remove any functions that I don't need, reducing the total amount that I need to ship.