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. X-MFC-With: r359453
This commit is contained in:
@@ -24,9 +24,12 @@ SRCS+= lfs.c lposix.c
|
|||||||
CFLAGS+= -I${SRCTOP}/lib/liblua -I${.CURDIR}/modules -I${LUASRC}
|
CFLAGS+= -I${SRCTOP}/lib/liblua -I${.CURDIR}/modules -I${LUASRC}
|
||||||
CFLAGS+= -DLUA_PROGNAME="\"${PROG}\""
|
CFLAGS+= -DLUA_PROGNAME="\"${PROG}\""
|
||||||
|
|
||||||
# readline bits
|
# 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+= -DLUA_USE_READLINE
|
||||||
CFLAGS+= -I${SRCTOP}/lib/libedit -I${SRCTOP}/contrib/libedit
|
CFLAGS+= -I${SRCTOP}/lib/libedit -I${SRCTOP}/contrib/libedit
|
||||||
LIBADD+= edit
|
LIBADD+= edit
|
||||||
|
.endif
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
.include <bsd.prog.mk>
|
||||||
|
|||||||
Reference in New Issue
Block a user