Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jun 2006 16:33:39 GMT
From:      Michael Bushkov <bushman@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 99765 for review
Message-ID:  <200606211633.k5LGXduB003256@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=99765

Change 99765 by bushman@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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606211633.k5LGXduB003256>