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
diff --git a/nss/Depend b/nss/Depend index 4921fe6c85..c0c4073623 100644 --- a/nss/Depend +++ b/nss/Depend @@ -1 +1,2 @@ db2 +resolv diff --git a/nss/Makefile b/nss/Makefile index 2b7bbc3f2b..56159304e1 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. |