svn commit: r359453 - head/libexec/flua

Kyle Evans kevans at FreeBSD.org
Mon Mar 30 18:43:15 UTC 2020


Author: kevans
Date: Mon Mar 30 18:43:05 2020
New Revision: 359453
URL: https://svnweb.freebsd.org/changeset/base/359453

Log:
  flua: enable readline bits, courtesy of libedit
  
  This is a nicer experience when attempting to run ad-hoc lua bits in the
  flua REPL.
  
  PR:		245121
  MFC after:	1 week

Modified:
  head/libexec/flua/Makefile

Modified: head/libexec/flua/Makefile
==============================================================================
--- head/libexec/flua/Makefile	Mon Mar 30 18:25:43 2020	(r359452)
+++ head/libexec/flua/Makefile	Mon Mar 30 18:43:05 2020	(r359453)
@@ -24,4 +24,9 @@ SRCS+=	lfs.c lposix.c
 CFLAGS+=	-I${SRCTOP}/lib/liblua -I${.CURDIR}/modules -I${LUASRC}
 CFLAGS+=	-DLUA_PROGNAME="\"${PROG}\""
 
+# readline bits
+CFLAGS+=	-DLUA_USE_READLINE
+CFLAGS+=	-I${SRCTOP}/lib/libedit -I${SRCTOP}/contrib/libedit
+LIBADD+=	edit
+
 .include <bsd.prog.mk>


More information about the svn-src-all mailing list