diff options
author | pjd <pjd@FreeBSD.org> | 2010-04-22 19:18:10 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2010-04-22 19:18:10 +0000 |
commit | 0ecd3895a89945fcc44975126b6e58c21c9b47df (patch) | |
tree | cf43b1a92e5cfab00404b306f3ae7de9d6ce3f5d /sbin/hastctl | |
parent | 3e04ac896af79c4f043b6e6850bc75f5c6f53396 (diff) | |
download | FreeBSD-src-0ecd3895a89945fcc44975126b6e58c21c9b47df.zip FreeBSD-src-0ecd3895a89945fcc44975126b6e58c21c9b47df.tar.gz |
Fix compilation with WITHOUT_CRYPT or WITHOUT_OPENSSL options.
Reported by: Andrei V. Lavreniyuk <andy.lavr@reactor-xg.kiev.ua>
MFC after: 3 days
Diffstat (limited to 'sbin/hastctl')
-rw-r--r-- | sbin/hastctl/Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
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 |