build lua dynamically

. allows modules to be loaded

Fix submitted by Marc Balmer <mbalmer@NetBSD.org>

Change-Id: I6b2d19c2c9b136f0d72d2f714027221c0b86b5ae
This commit is contained in:
Ben Gras 2014-09-28 16:31:54 +02:00
parent 0d9602e04b
commit 5075cea916

View file

@ -4,6 +4,12 @@ PROG= lua
SRCS= lua.c
BINDIR= /usr/bin
.if defined(__MINIX)
# BJG - lua has to be dynamic to allow loading modules
# Diagnosed by Marc Balmer
LDSTATIC=-dynamic
.endif # defined(__MINIX)
CPPFLAGS+= -DLUA_USE_READLINE
LDADD+= -llua -lm -ledit -lterminfo