Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Mar 2020 18:43:05 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r359453 - head/libexec/flua
Message-ID:  <202003301843.02UIh5ak019312@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202003301843.02UIh5ak019312>