diff options
Diffstat (limited to 'nss')
-rw-r--r-- | nss/Depend | 1 | ||||
-rw-r--r-- | nss/Makefile | 9 |
2 files changed, 10 insertions, 0 deletions
@@ -1 +1,2 @@ db2 +resolv diff --git a/nss/Makefile b/nss/Makefile index 2b7bbc3..5615930 100644 --- a/nss/Makefile +++ b/nss/Makefile @@ -43,6 +43,11 @@ tests = test-netdb include ../Makeconfig +ifeq (yes,$(build-static-nss)) +otherlibs += $(nssobjdir)/libnss_files.a $(resolvobjdir)/libnss_dns.a \ + $(resolvobjdir)/libresolv.a +endif + # Specify rules for the nss_* modules. We have some services. services := files db @@ -84,6 +89,10 @@ $(libnss_db-routines:%=$(objpfx)%.c): $(objpfx)db-%.c: nss_files/files-%.c echo '#include <$<>') > $@.new mv -f $@.new $@ +ifeq (yes,$(build-static-nss)) +$(objpfx)getent: $(objpfx)libnss_files.a +endif + # Depend on libc.so so a DT_NEEDED is generated in the shared objects. # This ensures they will load libc.so for needed symbols if loaded by # a statically-linked program that hasn't already loaded it. |