8e8728c45c
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.
24 lines
362 B
Makefile
24 lines
362 B
Makefile
# $NetBSD: Makefile,v 1.9 2005/03/04 20:41:09 he Exp $
|
|
# from @(#)Makefile 8.1 (Berkeley) 6/4/93
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
WARNS=3
|
|
PROG= rexecd
|
|
MAN= rexecd.8
|
|
|
|
.if ${USE_PAM} != "no"
|
|
|
|
CPPFLAGS+= -DUSE_PAM -DPAM_DEBUG
|
|
LDADD+= -lpam ${PAM_STATIC_LDADD}
|
|
DPADD+= ${LIBPAM} ${PAM_STATIC_DPADD}
|
|
|
|
.else
|
|
|
|
LDADD+= -lcrypt
|
|
DPADD+= ${LIBCRYPT}
|
|
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|