build lua dynamically
. allows modules to be loaded Fix submitted by Marc Balmer <mbalmer@NetBSD.org> Change-Id: I6b2d19c2c9b136f0d72d2f714027221c0b86b5ae
This commit is contained in:
parent
0d9602e04b
commit
5075cea916
1 changed files with 6 additions and 0 deletions
6
external/mit/lua/usr.bin/lua/Makefile
vendored
6
external/mit/lua/usr.bin/lua/Makefile
vendored
|
@ -4,6 +4,12 @@ PROG= lua
|
||||||
SRCS= lua.c
|
SRCS= lua.c
|
||||||
BINDIR= /usr/bin
|
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
|
CPPFLAGS+= -DLUA_USE_READLINE
|
||||||
|
|
||||||
LDADD+= -llua -lm -ledit -lterminfo
|
LDADD+= -llua -lm -ledit -lterminfo
|
||||||
|
|
Loading…
Reference in a new issue