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:
Ed Maste 2020-08-13 23:13:05 +00:00
parent b2e98945d7
commit 3bd8419597
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>