summaryrefslogtreecommitdiff
path: root/usr.sbin/ngctl
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2019-07-15 14:23:51 +0000
committerWarner Losh <imp@FreeBSD.org>2019-07-15 14:23:51 +0000
commit6c35c7d1b615d5f5f13aedd6271e553858af6db0 (patch)
tree7143946a037738f3d1b4d5e999c1ae58b4eee0d3 /usr.sbin/ngctl
parent01b01229540bfa1a250973da7c8a1a3d84853ca5 (diff)
downloadsrc-test-6c35c7d1b615d5f5f13aedd6271e553858af6db0.tar.gz
src-test-6c35c7d1b615d5f5f13aedd6271e553858af6db0.zip
Replace complicated expression to disable libedit when no libthr is being built
with a simpler one.
Notes
Notes: svn path=/head/; revision=349997
Diffstat (limited to 'usr.sbin/ngctl')
-rw-r--r--usr.sbin/ngctl/Makefile10
1 files changed, 1 insertions, 9 deletions
diff --git a/usr.sbin/ngctl/Makefile b/usr.sbin/ngctl/Makefile
index 71b5d2b9dfafb..519bf98c7813a 100644
--- a/usr.sbin/ngctl/Makefile
+++ b/usr.sbin/ngctl/Makefile
@@ -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