Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Aug 2020 23:13:05 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r364222 - in head: lib/liblua libexec/flua
Message-ID:  <202008132313.07DND57i064095@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008132313.07DND57i064095>