flua: support "require" for binary objects in the base system

Export symbols from flua, and enable dlopen.

Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D26059
This commit is contained in:
emaste 2020-08-13 23:13:05 +00:00
parent 67743df245
commit 2ecb4c7b2f
2 changed files with 3 additions and 0 deletions

View File

@ -75,6 +75,7 @@
/* Local modifications: need io.popen */
#ifdef __FreeBSD__
#define LUA_USE_POSIX
#define LUA_USE_DLOPEN
#endif
/*

View File

@ -38,4 +38,6 @@ SRCS+= lua_ucl.c
CFLAGS+= -I${UCLSRC}/include -I${UCLSRC}/src -I${UCLSRC}/uthash
LIBADD+= ucl
LDFLAGS+= -Wl,-E
.include <bsd.prog.mk>