[ntp] Don't compile in the ssl routines into libevent if MK_OPENSSL is no

Most of ntpd still handles MK_OPENSSL ok, but the libevent import brought
in the SSL bufferevent routines without checking MK_OPENSSL.

This doesn't completely fix WITHOUT_CRYPTO=YES building, but hey, it's one
less broken thing.
This commit is contained in:
Adrian Chadd 2020-01-24 06:24:40 +00:00
parent 6966ac055c
commit ab95087a0e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=357068

View file

@ -1,16 +1,22 @@
# $FreeBSD$
.include <src.opts.mk>
.PATH: ${SRCTOP}/contrib/libevent
LIB= ntpevent
INTERNALLIB=
SRCS= buffer.c bufferevent.c bufferevent_filter.c bufferevent_openssl.c \
SRCS= buffer.c bufferevent.c bufferevent_filter.c \
bufferevent_pair.c epoll.c evdns.c event.c event_tagging.c \
evmap.c evport.c evrpc.c evthread.c evthread_pthread.c evutil.c \
evutil_rand.c evutil_time.c http.c kqueue.c listener.c log.c poll.c \
select.c signal.c strlcpy.c
.if ${MK_OPENSSL} != "no"
SRCS+= bufferevent_openssl.c
.endif
.if ${MACHINE_ARCH} == "i386"
NTP_ATOMIC=x86_32
.elif ${MACHINE_ARCH} == "amd64"