Index: head/lib/liblua/luaconf.h =================================================================== --- head/lib/liblua/luaconf.h +++ head/lib/liblua/luaconf.h @@ -75,6 +75,7 @@ /* Local modifications: need io.popen */ #ifdef __FreeBSD__ #define LUA_USE_POSIX +#define LUA_USE_DLOPEN #endif /* Index: head/libexec/flua/Makefile =================================================================== --- head/libexec/flua/Makefile +++ head/libexec/flua/Makefile @@ -38,4 +38,6 @@ CFLAGS+= -I${UCLSRC}/include -I${UCLSRC}/src -I${UCLSRC}/uthash LIBADD+= ucl +LDFLAGS+= -Wl,-E + .include