svn commit: r364222 - in head: lib/liblua libexec/flua

Ed Maste emaste at FreeBSD.org
Thu Aug 13 23:13:06 UTC 2020


Author: emaste
Date: Thu Aug 13 23:13:05 2020
New Revision: 364222
URL: https://svnweb.freebsd.org/changeset/base/364222

Log:
  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

Modified:
  head/lib/liblua/luaconf.h
  head/libexec/flua/Makefile

Modified: head/lib/liblua/luaconf.h
==============================================================================
--- head/lib/liblua/luaconf.h	Thu Aug 13 22:42:24 2020	(r364221)
+++ head/lib/liblua/luaconf.h	Thu Aug 13 23:13:05 2020	(r364222)
@@ -75,6 +75,7 @@
 /* Local modifications: need io.popen */
 #ifdef __FreeBSD__
 #define LUA_USE_POSIX
+#define LUA_USE_DLOPEN
 #endif
 
 /*

Modified: head/libexec/flua/Makefile
==============================================================================
--- head/libexec/flua/Makefile	Thu Aug 13 22:42:24 2020	(r364221)
+++ head/libexec/flua/Makefile	Thu Aug 13 23:13:05 2020	(r364222)
@@ -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>


More information about the svn-src-head mailing list