summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ftpd/Makefile1
-rw-r--r--libexec/makekey/Makefile2
-rw-r--r--libexec/rexecd/Makefile3
3 files changed, 4 insertions, 2 deletions
diff --git a/libexec/ftpd/Makefile b/libexec/ftpd/Makefile
index 0a067be5e62a..22c826f54b1f 100644
--- a/libexec/ftpd/Makefile
+++ b/libexec/ftpd/Makefile
@@ -3,6 +3,7 @@
PROG= ftpd
CFLAGS+=-DSETPROCTITLE
SRCS= ftpd.c ftpcmd.c logwtmp.c popen.c
+LDADD= -lcrypt
MAN8= ftpd.8
CLEANFILES+=ftpcmd.c y.tab.h
diff --git a/libexec/makekey/Makefile b/libexec/makekey/Makefile
index 5f61f4f9cb43..dd07112bf1c3 100644
--- a/libexec/makekey/Makefile
+++ b/libexec/makekey/Makefile
@@ -3,9 +3,7 @@
PROG= makekey
MAN8= makekey.8
-.if exists(/usr/lib/libcrypt.a)
DPADD+= ${LIBCRYPT}
LDADD+= -lcrypt
-.endif
.include <bsd.prog.mk>
diff --git a/libexec/rexecd/Makefile b/libexec/rexecd/Makefile
index b12d228b9215..0b225ba706e3 100644
--- a/libexec/rexecd/Makefile
+++ b/libexec/rexecd/Makefile
@@ -2,5 +2,8 @@
PROG= rexecd
MAN8= rexecd.8
+LDADD= -lcrypt
+DPADD= ${LIBCRYPT}
+
.include <bsd.prog.mk>