svn commit: r359646 - stable/12/libexec/flua

Kyle Evans kevans at FreeBSD.org
Mon Apr 6 04:06:16 UTC 2020


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>


More information about the svn-src-stable-12 mailing list