Uncomment LUA_DPLIBS processing, but do not auto-include liblua.so,

under the assumption that programs that load Lua modules already have
loaded it.
This commit is contained in:
mbalmer 2011-10-16 00:45:09 +00:00
parent f67ef85d6d
commit 6ec0bc5690

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.lua.mk,v 1.3 2011/10/08 08:35:56 mbalmer Exp $
# $NetBSD: bsd.lua.mk,v 1.4 2011/10/16 00:45:09 mbalmer Exp $
#
# Build rules and definitions for Lua modules
@ -10,7 +10,6 @@
#
# LUA_MODULES list of Lua modules to build/installi
# LUA_DPLIBS shared library dependencies as per LIBDPLIBS
# (liblua is automatically included)
#
# LUA_SRCS.mod sources for each module (by default: "${mod:S/./_/g}.lua")
#
@ -82,14 +81,14 @@ CFLAGS+= -fPIC -DPIC
##
##### Libraries that modules may depend upon.
#.for _lib _dir in lua ${NETBSDSRCDIR}/external/mit/lua/lib/liblua ${LUA_DPLIBS}
#.if !defined(LIBDO.${_lib})
#LIBDO.${_lib}!= cd "${_dir}" && ${PRINTOBJDIR}
#.MAKEOVERRIDES+=LIBDO.${_lib}
#.endif
#LDADD+=-L${LIBDO.${_lib}} -l${_lib}
#DPADD+=${LIBDO.${_lib}}/lib${_lib}.so
#.endfor
.for _lib _dir in ${LUA_DPLIBS}
.if !defined(LIBDO.${_lib})
LIBDO.${_lib}!= cd "${_dir}" && ${PRINTOBJDIR}
.MAKEOVERRIDES+=LIBDO.${_lib}
.endif
LDADD+=-L${LIBDO.${_lib}} -l${_lib}
DPADD+=${LIBDO.${_lib}}/lib${_lib}.so
.endfor
##
##### Lua Modules