Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/share/mk/bsd.prog.mk,v retrieving revision 1.205 retrieving revision 1.206 diff -u -p -r1.205 -r1.206 --- src/share/mk/bsd.prog.mk 2005/02/20 00:35:02 1.205 +++ src/share/mk/bsd.prog.mk 2005/03/04 20:41:08 1.206 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.prog.mk,v 1.205 2005/02/20 00:35:02 christos Exp $ +# $NetBSD: bsd.prog.mk,v 1.206 2005/03/04 20:41:08 he Exp $ # @(#)bsd.prog.mk 8.2 (Berkeley) 4/2/94 .ifndef HOSTPROG @@ -73,6 +73,15 @@ LIB${_lib:tu}= ${DESTDIR}/usr/lib/lib${_ .endif .endfor +# PAM applications, if linked statically, need more libraries +.if (${MKPIC} == "no") +PAM_STATIC_LDADD= -lcrypt -lrpcsvc -lutil +PAM_STATIC_DPADD= ${LIBCRYPT} ${LIBRPCSVC} ${LIBUTIL} +.else +PAM_STATIC_LDADD= +PAM_STATIC_DPADD= +.endif + .ifndef LIBSTDCXX LIBSTDCXX= ${DESTDIR}/usr/lib/libstdc++.a .MADE: ${LIBSTDCXX}