From 0ecd3895a89945fcc44975126b6e58c21c9b47df Mon Sep 17 00:00:00 2001 From: pjd Date: Thu, 22 Apr 2010 19:18:10 +0000 Subject: Fix compilation with WITHOUT_CRYPT or WITHOUT_OPENSSL options. Reported by: Andrei V. Lavreniyuk MFC after: 3 days --- sbin/hastctl/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'sbin/hastctl') diff --git a/sbin/hastctl/Makefile b/sbin/hastctl/Makefile index e0d6b5b..301493c 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 -- cgit v1.1