Subject: CVS commit: src
To: None <>
From: Havard Eidnes <>
List: source-changes
Date: 03/04/2005 20:41:09
Module Name:	src
Committed By:	he
Date:		Fri Mar  4 20:41:09 UTC 2005

Modified Files:
	src/libexec/ftpd: Makefile
	src/libexec/rexecd: Makefile
	src/libexec/rshd: Makefile
	src/libexec/telnetd: Makefile
	src/usr.bin/login: Makefile
	src/usr.bin/passwd: Makefile
	src/usr.bin/ssh/sshd: Makefile
	src/usr.bin/su: Makefile
	src/usr.bin/telnet: Makefile
	src/usr.sbin/pppd/pppd: Makefile
	src/usr.sbin/racoon: Makefile

Log Message:
Introduce PAM_STATIC_LDADD and PAM_STATIC_DPADD.  When compiling
with MKPIC=no, possibly because the target does not support shared
libraries, these include libraries required to resolve all symbols
which end up referenced from PAM-using applications.  The libraries
presently required are -lcrypt, -lrpcsvc and -lutil.

Add use of these variables which are currently set up to use PAM,
so that they compile when MKPIC=no.

Also, in the telnetd case, reorder the order of the libraries, so
that libtelnet.a comes before -ltermcap and -lutil, again to fix
link error when MKPIC=no.

Discussed with thorpej and christos.

To generate a diff of this commit:
cvs rdiff -r1.53 -r1.54 src/libexec/ftpd/Makefile
cvs rdiff -r1.8 -r1.9 src/libexec/rexecd/Makefile
cvs rdiff -r1.15 -r1.16 src/libexec/rshd/Makefile
cvs rdiff -r1.41 -r1.42 src/libexec/telnetd/Makefile
cvs rdiff -r1.205 -r1.206 src/share/mk/
cvs rdiff -r1.44 -r1.45 src/usr.bin/login/Makefile
cvs rdiff -r1.39 -r1.40 src/usr.bin/passwd/Makefile
cvs rdiff -r1.24 -r1.25 src/usr.bin/ssh/sshd/Makefile
cvs rdiff -r1.41 -r1.42 src/usr.bin/su/Makefile
cvs rdiff -r1.36 -r1.37 src/usr.bin/telnet/Makefile
cvs rdiff -r1.35 -r1.36 src/usr.sbin/pppd/pppd/Makefile
cvs rdiff -r1.10 -r1.11 src/usr.sbin/racoon/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.