Replace complicated expression to disable libedit when no libthr is being built

with a simpler one.
This commit is contained in:
Warner Losh 2019-07-15 14:23:51 +00:00
parent 01b0122954
commit 6c35c7d1b6

View File

@ -9,17 +9,9 @@ SRCS= main.c mkpeer.c config.c connect.c dot.c name.c show.c list.c \
msg.c debug.c shutdown.c rmhook.c status.c types.c write.c
WARNS?= 3
.if defined(RELEASE_CRUNCH)
NGCTL_NO_LIBEDIT=
.endif
.if ${MK_LIBTHR} == "no"
NGCTL_NO_LIBEDIT=
.endif
LIBADD= netgraph
.if !defined(NGCTL_NO_LIBEDIT)
.if ${MK_LIBTHR} != "no"
CFLAGS+= -DEDITLINE
LIBADD+= edit pthread
.endif