diff options
Diffstat (limited to 'nss/Makefile')
-rw-r--r-- | nss/Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
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. |