5 ms·
> Only the most trivial libraries actually support it. ... what kind of nonsense is that? Almost every library supports static linking to a basic degree at lea
by ultramancool 12y ago
> Only the most trivial libraries actually support it.
... what kind of nonsense is that? Almost every library supports static linking to a basic degree at least. Heck, I statically link giant things like Qt and Boost every day at work.
- vodik 12y agoWell the core of the issue here is you can't really staticly link against a library that depends on dlopen/dlsym (nss system is built around this). I mean, you could, but now your staticly linked binary still depends on other dlsym'd code. So whats the point? (Not trying to make an argument that this is good or bad behaviour)
- ultramancool 12y agoI understand, but the question then becomes why your library depends on dlopen and why you don't offer an alternative static method as Qt's "plugins" do. Doesn't seem like good design on the part of the NSS devs to me, and probably a poor choice of library on the part of the systemd devs to me. But maybe I'm missing something.
- the_why_of_y 12y agoThe library that depends on dlopen is glibc.
- ultramancool 12y agoYou can statically link glibc, so I'm pretty sure that's not right...