Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jan 2020 06:24:40 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r357068 - head/usr.sbin/ntp/libntpevent
Message-ID:  <202001240624.00O6OeFN073527@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Fri Jan 24 06:24:40 2020
New Revision: 357068
URL: https://svnweb.freebsd.org/changeset/base/357068

Log:
  [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.

Modified:
  head/usr.sbin/ntp/libntpevent/Makefile

Modified: head/usr.sbin/ntp/libntpevent/Makefile
==============================================================================
--- head/usr.sbin/ntp/libntpevent/Makefile	Fri Jan 24 02:18:09 2020	(r357067)
+++ head/usr.sbin/ntp/libntpevent/Makefile	Fri Jan 24 06:24:40 2020	(r357068)
@@ -1,15 +1,21 @@
 # $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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202001240624.00O6OeFN073527>