PERFORCE change 99765 for review

Michael Bushkov bushman at FreeBSD.org
Wed Jun 21 16:33:40 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=99765

Change 99765 by bushman at bushman_nss_ldap_cached on 2006/06/21 16:33:26

	Ypserv used private libc symbol. Now it uses this symbol from the static libnss_dns library. Copy-paste was not used here because of the huge amount of code and extensive usage of internal libc/nss_dns functions.

Affected files ...

.. //depot/projects/soc2006/nss_ldap_cached/src/usr.sbin/ypserv/Makefile#2 edit

Differences ...

==== //depot/projects/soc2006/nss_ldap_cached/src/usr.sbin/ypserv/Makefile#2 (text+ko) ====

@@ -11,7 +11,9 @@
 CFLAGS+= -DDB_CACHE -DTCP_WRAPPER -I.
 
 DPADD=	${LIBWRAP}
-LDADD=	-lwrap
+# dirty hack: nss_dns is needed in order to use __dns_getanswer
+LDFLAGS+=-L${.OBJDIR}/../../lib/nss_dns
+LDADD=	-lwrap -lnss_dns
 
 CLEANFILES= yp_svc.c ypxfr_clnt.c yp.h
 


More information about the p4-projects mailing list