aboutsummaryrefslogtreecommitdiff
path: root/sbin/hastctl
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2010-04-22 19:18:10 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2010-04-22 19:18:10 +0000
commit36df4f8d056ab10837fc2de35fc7de7ce6add900 (patch)
treecf43b1a92e5cfab00404b306f3ae7de9d6ce3f5d /sbin/hastctl
parenta003741e38224ac0e8f0b03a5a3cb250581b7da5 (diff)
downloadsrc-36df4f8d056ab10837fc2de35fc7de7ce6add900.tar.gz
src-36df4f8d056ab10837fc2de35fc7de7ce6add900.zip
Fix compilation with WITHOUT_CRYPT or WITHOUT_OPENSSL options.
Reported by: Andrei V. Lavreniyuk <andy.lavr@reactor-xg.kiev.ua> MFC after: 3 days
Notes
Notes: svn path=/head/; revision=207070
Diffstat (limited to 'sbin/hastctl')
-rw-r--r--sbin/hastctl/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/sbin/hastctl/Makefile b/sbin/hastctl/Makefile
index e0d6b5b72232..301493cec79b 100644
--- a/sbin/hastctl/Makefile
+++ b/sbin/hastctl/Makefile
@@ -25,8 +25,13 @@ CFLAGS+=-DINET6
# This is needed to have WARNS > 1.
CFLAGS+=-DYY_NO_UNPUT
-DPADD= ${LIBCRYPTO} ${LIBL}
-LDADD= -lcrypto -ll
+DPADD= ${LIBL}
+LDADD= -ll
+.if ${MK_OPENSSL} != "no"
+DPADD+= ${LIBCRYPTO}
+LDADD+= -lcrypto
+CFLAGS+=-DHAVE_CRYPTO
+.endif
YFLAGS+=-v