summaryrefslogtreecommitdiffstats
path: root/secure/libexec/telnetd/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'secure/libexec/telnetd/Makefile')
-rw-r--r--secure/libexec/telnetd/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/secure/libexec/telnetd/Makefile b/secure/libexec/telnetd/Makefile
index 3b341ad..4fc6042 100644
--- a/secure/libexec/telnetd/Makefile
+++ b/secure/libexec/telnetd/Makefile
@@ -18,14 +18,19 @@ MAN8= telnetd.8
#ifdef ENCRYPTION
CFLAGS+=-DAUTHENTICATION -DENCRYPTION
-LDADD+= -ldescrypt
.ifdef MAKE_KERBEROS
.if exists(/usr/lib/libkrb.a)
-LDADD+= -lkrb -ldes
+LDADD+= -ldes -lkrb
+.endif
.endif
+
+.if exists(/usr/lib/libkrb5.a)
+LDADD+= -ldes -lkrb5
.endif
+LDADD+= -ldescrypt
+
#endif /* ENCRYPTION */
# These are the sources that have encryption stuff in them.
OpenPOWER on IntegriCloud