diff --git a/lib/liblua/luaconf.h b/lib/liblua/luaconf.h index db6f3222f101..6226e8ab1e84 100644 --- a/lib/liblua/luaconf.h +++ b/lib/liblua/luaconf.h @@ -75,6 +75,7 @@ /* Local modifications: need io.popen */ #ifdef __FreeBSD__ #define LUA_USE_POSIX +#define LUA_USE_DLOPEN #endif /* diff --git a/libexec/flua/Makefile b/libexec/flua/Makefile index a4dc916e7834..3efb75044b09 100644 --- a/libexec/flua/Makefile +++ b/libexec/flua/Makefile @@ -38,4 +38,6 @@ SRCS+= lua_ucl.c CFLAGS+= -I${UCLSRC}/include -I${UCLSRC}/src -I${UCLSRC}/uthash LIBADD+= ucl +LDFLAGS+= -Wl,-E + .include