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>
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to