From 053e229eef5035bcbf6989704b911b29fbfb2445 Mon Sep 17 00:00:00 2001 From: imp Date: Mon, 15 Jul 2019 14:23:51 +0000 Subject: [PATCH] Replace complicated expression to disable libedit when no libthr is being built with a simpler one. --- usr.sbin/ngctl/Makefile | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/usr.sbin/ngctl/Makefile b/usr.sbin/ngctl/Makefile index 71b5d2b9dfa..519bf98c781 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 -- 2.45.0