This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

A static Makefile patch


It is very obvious.

-- 
H.J. Lu (hjl@gnu.org)
---
Sun Aug  8 10:56:43 1999  H.J. Lu  <hjl@gnu.org>

	* pwd/Makefile (otherlibs): Add necessary libraries if
	$(build-static-nss) is defined as "yes".
	* inet/Makefile (otherlibs): Likewise.

Index: pwd/Makefile
===================================================================
RCS file: /work/cvs/gnu/glibc/pwd/Makefile,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 Makefile
--- pwd/Makefile	1999/08/08 17:02:07	1.1.1.1
+++ pwd/Makefile	1999/08/08 18:00:46
@@ -30,6 +30,11 @@ tests := tst-getpw
 
 include ../Rules
 
+ifeq ($(build-static-nss),yes)
+otherlibs += $(nssobjdir)/libnss_files.a $(resolvobjdir)/libnss_dns.a \
+	     $(resolvobjdir)/libresolv.a
+endif
+
 ifeq ($(have-thread-library),yes)
 
 CFLAGS-getpwuid_r.c = -DUSE_NSCD=1
Index: inet/Makefile
===================================================================
RCS file: /work/cvs/gnu/glibc/inet/Makefile,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 Makefile
--- inet/Makefile	1999/08/08 17:01:34	1.1.1.1
+++ inet/Makefile	1999/08/08 18:00:31
@@ -66,4 +66,6 @@ endif
 
 ifeq ($(build-static-nss),yes)
 CFLAGS += -DSTATIC_NSS
+otherlibs += $(nssobjdir)/libnss_files.a $(resolvobjdir)/libnss_dns.a \
+	     $(resolvobjdir)/libresolv.a
 endif

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]