flua: don't allow dlopen, et al., for bootstrap flua

There are some logistics issues that need to be sorted out here before we
can actually allow this to work.
This commit is contained in:
Kyle Evans 2020-08-14 02:22:19 +00:00
parent 2933cd3184
commit c2a2b4f3cf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=364226
2 changed files with 6 additions and 2 deletions

View file

@ -75,8 +75,10 @@
/* Local modifications: need io.popen */
#ifdef __FreeBSD__
#define LUA_USE_POSIX
#ifndef BOOTSTRAPPING
#define LUA_USE_DLOPEN
#endif
#endif
/*
@@ LUA_C89_NUMBERS ensures that Lua uses the largest types available for

View file

@ -30,6 +30,10 @@ CFLAGS+= -DLUA_PROGNAME="\"${PROG}\""
CFLAGS+= -DLUA_USE_READLINE
CFLAGS+= -I${SRCTOP}/lib/libedit -I${SRCTOP}/contrib/libedit
LIBADD+= edit
LDFLAGS+= -Wl,-E
.else
# We don't support dynamic libs on bootstrap builds.
CFLAGS+= -DBOOTSTRAPPING
.endif
UCLSRC?= ${SRCTOP}/contrib/libucl
@ -38,6 +42,4 @@ SRCS+= lua_ucl.c
CFLAGS+= -I${UCLSRC}/include -I${UCLSRC}/src -I${UCLSRC}/uthash
LIBADD+= ucl
LDFLAGS+= -Wl,-E
.include <bsd.prog.mk>