Date: Mon, 6 Apr 2020 04:06:15 +0000 (UTC) From: Kyle Evans <kevans@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org Subject: svn commit: r359646 - stable/12/libexec/flua Message-ID: <202004060406.03646FTc004754@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kevans Date: Mon Apr 6 04:06:15 2020 New Revision: 359646 URL: https://svnweb.freebsd.org/changeset/base/359646 Log: MFC r359453, r359455 r359453: flua: enable readline bits, courtesy of libedit This is a nicer experience when attempting to run ad-hoc lua bits in the flua REPL. r359455: 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. PR: 245121 Modified: stable/12/libexec/flua/Makefile Directory Properties: stable/12/ (props changed) Modified: stable/12/libexec/flua/Makefile ============================================================================== --- stable/12/libexec/flua/Makefile Mon Apr 6 01:28:03 2020 (r359645) +++ stable/12/libexec/flua/Makefile Mon Apr 6 04:06:15 2020 (r359646) @@ -35,4 +35,12 @@ SRCS+= lfs.c lposix.c CFLAGS+= -I${.CURDIR} -I${.CURDIR}/modules -I${LUASRC} CFLAGS+= -DLUA_PROGNAME="\"${PROG}\"" +# 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 <bsd.prog.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202004060406.03646FTc004754>