mirror of
https://github.com/opnsense/src.git
synced 2026-06-14 19:20:18 -04:00
flua: make the ucl module a dynamic module
Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D46569
This commit is contained in:
parent
e1b1984abb
commit
bb2d016afb
4 changed files with 19 additions and 9 deletions
|
|
@ -1,4 +1,5 @@
|
|||
SUBDIR+= libhash
|
||||
SUBDIR+= libjail
|
||||
SUBDIR+= libucl
|
||||
|
||||
.include <bsd.subdir.mk>
|
||||
|
|
|
|||
17
lib/flua/libucl/Makefile
Normal file
17
lib/flua/libucl/Makefile
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
SHLIB_NAME= ucl.so
|
||||
SHLIBDIR= ${LIBDIR}/flua
|
||||
|
||||
WARNS= 2
|
||||
|
||||
UCLSRC?= ${SRCTOP}/contrib/libucl
|
||||
.PATH: ${UCLSRC}/lua
|
||||
SRCS+= lua_ucl.c
|
||||
CFLAGS+= \
|
||||
-I${SRCTOP}/contrib/lua/src \
|
||||
-I${SRCTOP}/lib/liblua \
|
||||
-I${UCLSRC}/include \
|
||||
-I${UCLSRC}/src \
|
||||
-I${UCLSRC}/uthash
|
||||
LIBADD+= ucl
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
|
|
@ -4,7 +4,7 @@ LUASRC?= ${SRCTOP}/contrib/lua/src
|
|||
.PATH: ${LUASRC}
|
||||
|
||||
PROG= flua
|
||||
WARNS?= 2
|
||||
WARNS?= 3
|
||||
MAN= # No manpage; this is internal.
|
||||
|
||||
CWARNFLAGS.gcc+= -Wno-format-nonliteral
|
||||
|
|
@ -31,10 +31,4 @@ LIBADD+= edit
|
|||
LDFLAGS+= -Wl,-E
|
||||
.endif
|
||||
|
||||
UCLSRC?= ${SRCTOP}/contrib/libucl
|
||||
.PATH: ${UCLSRC}/lua
|
||||
SRCS+= lua_ucl.c
|
||||
CFLAGS+= -I${UCLSRC}/include -I${UCLSRC}/src -I${UCLSRC}/uthash
|
||||
LIBADD+= ucl
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
|
|
|||
|
|
@ -36,7 +36,6 @@
|
|||
#include "lfs.h"
|
||||
#include "lposix.h"
|
||||
#include "lfbsd.h"
|
||||
#include "lua_ucl.h"
|
||||
|
||||
/*
|
||||
** these libs are loaded by lua.c and are readily available to any Lua
|
||||
|
|
@ -61,7 +60,6 @@ static const luaL_Reg loadedlibs[] = {
|
|||
{"posix.sys.stat", luaopen_posix_sys_stat},
|
||||
{"posix.sys.utsname", luaopen_posix_sys_utsname},
|
||||
{"posix.unistd", luaopen_posix_unistd},
|
||||
{"ucl", luaopen_ucl},
|
||||
{"fbsd", luaopen_fbsd},
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue