summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/ssh-keyscan/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/ssh/ssh-keyscan/Makefile')
-rw-r--r--usr.bin/ssh/ssh-keyscan/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/usr.bin/ssh/ssh-keyscan/Makefile b/usr.bin/ssh/ssh-keyscan/Makefile
index db192787b2d..28e5fba2bb0 100644
--- a/usr.bin/ssh/ssh-keyscan/Makefile
+++ b/usr.bin/ssh/ssh-keyscan/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.15 2019/12/13 19:09:10 djm Exp $
+# $OpenBSD: Makefile,v 1.16 2020/01/23 10:24:30 dtucker Exp $
.PATH: ${.CURDIR}/..
@@ -12,6 +12,11 @@ BINDIR= /usr/bin
.include <bsd.prog.mk>
-LDADD+= -lcrypto -lz -lutil
-DPADD+= ${LIBCRYPTO} ${LIBZ} ${LIBUTIL}
+LDADD+= -lcrypto -lutil
+DPADD+= ${LIBCRYPTO} ${LIBUTIL}
+
+.if (${ZLIB:L} == "yes")
+LDADD+= -lz
+DPADD+= ${LIBZ}
+.endif