A static Makefile patch
H.J. Lu
hjl@varesearch.com
Sun Aug 8 11:14:00 GMT 1999
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
More information about the Libc-hacker
mailing list