summaryrefslogtreecommitdiffstats
path: root/libexec/rshd/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/rshd/Makefile')
-rw-r--r--libexec/rshd/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/libexec/rshd/Makefile b/libexec/rshd/Makefile
index 54e254b..735c00d 100644
--- a/libexec/rshd/Makefile
+++ b/libexec/rshd/Makefile
@@ -7,11 +7,16 @@ MAN= rshd.8
#CFLAGS+= -DCRYPT
-# For login_cap handling
-CFLAGS+=-DLOGIN_CAP -Wall
+CFLAGS+= -Wall
DPADD+= ${LIBUTIL}
LDADD+= -lutil
+.if !defined(NOPAM)
+CFLAGS+= -DUSE_PAM
+DPADD+= ${LIBPAM}
+LDADD+= ${MINUSLPAM}
+.endif
+
# IPv6 support
CFLAGS+= -DINET6
OpenPOWER on IntegriCloud