4 ms·
gcc has no problem with static linking. glibc can be statically linked (with gcc or clang) except the pluggable parts, which is NSS. How would you reconcile sta
by vbernat 11y ago
gcc has no problem with static linking. glibc can be statically linked (with gcc or clang) except the pluggable parts, which is NSS. How would you reconcile static linking and plugins?
- pjmlp 11y agoBy making use of plugin selection at compile time, like we used to do when dynamic linking wasn't available in mainstream OSes.
- vbernat 11y agoThe whole idea of NSS is to be pluggable to let the local administrator chooses what they need.
- pjmlp 11y agoBack in the day when UNIX only had static linking that type of plugability was achieved via configuration files and UNIX IPC. Dynamic linking just makes it easy to program for the same scenario.
- fpoling 11y agoAs a result of that good intention glibc must now be compiled into each and every program that wants to allow a customization complicating life for anybody who writes system software in anything but C/C++. I would rather preferred for NSS to never happen and instead Linux defined a set of services available over unix sockets for things like DNS resolution or user/group databases.