From 3bd8419597b44dc3da2b1e6ffc2c7ee9cf4aa195 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Thu, 13 Aug 2020 23:13:05 +0000 Subject: [PATCH] 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 --- lib/liblua/luaconf.h | 1 + libexec/flua/Makefile | 2 ++ 2 files changed, 3 insertions(+) diff --git a/lib/liblua/luaconf.h b/lib/liblua/luaconf.h index db6f3222f10..6226e8ab1e8 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 a4dc916e783..3efb75044b0 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 -- 2.45.0