From d79ed5bd0a322681ef98f87bd3012927528352d4 Mon Sep 17 00:00:00 2001 From: kevans Date: Mon, 30 Mar 2020 20:01:44 +0000 Subject: [PATCH] flua: follow-up to r359453, don't bother with libedit in bootstrap The bootstrap flua should not be used for REPL-like activities; exclude it to save the dependency on libedit and not waste time with it. X-MFC-With: r359453 --- libexec/flua/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libexec/flua/Makefile b/libexec/flua/Makefile index a85d1bac8a8c..4b5c4ee55416 100644 --- a/libexec/flua/Makefile +++ b/libexec/flua/Makefile @@ -24,9 +24,12 @@ SRCS+= lfs.c lposix.c CFLAGS+= -I${SRCTOP}/lib/liblua -I${.CURDIR}/modules -I${LUASRC} CFLAGS+= -DLUA_PROGNAME="\"${PROG}\"" -# readline bits +# readline bits; these aren't needed if we're building a bootstrap flua, as we +# don't expect that one to see any REPL usage. +.if !defined(BOOTSTRAPPING) CFLAGS+= -DLUA_USE_READLINE CFLAGS+= -I${SRCTOP}/lib/libedit -I${SRCTOP}/contrib/libedit LIBADD+= edit +.endif .include