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:
parent
b2e98945d7
commit
3bd8419597
@ -75,6 +75,7 @@
|
|||||||
/* Local modifications: need io.popen */
|
/* Local modifications: need io.popen */
|
||||||
#ifdef __FreeBSD__
|
#ifdef __FreeBSD__
|
||||||
#define LUA_USE_POSIX
|
#define LUA_USE_POSIX
|
||||||
|
#define LUA_USE_DLOPEN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -38,4 +38,6 @@ SRCS+= lua_ucl.c
|
|||||||
CFLAGS+= -I${UCLSRC}/include -I${UCLSRC}/src -I${UCLSRC}/uthash
|
CFLAGS+= -I${UCLSRC}/include -I${UCLSRC}/src -I${UCLSRC}/uthash
|
||||||
LIBADD+= ucl
|
LIBADD+= ucl
|
||||||
|
|
||||||
|
LDFLAGS+= -Wl,-E
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
.include <bsd.prog.mk>
|
||||||
|
Loading…
Reference in New Issue
Block a user