From 5075cea9163f796078d941d03e9a94ab7741220d Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Sun, 28 Sep 2014 16:31:54 +0200 Subject: [PATCH] build lua dynamically . allows modules to be loaded Fix submitted by Marc Balmer Change-Id: I6b2d19c2c9b136f0d72d2f714027221c0b86b5ae --- external/mit/lua/usr.bin/lua/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/external/mit/lua/usr.bin/lua/Makefile b/external/mit/lua/usr.bin/lua/Makefile index 5a415d87e..71f1c1474 100644 --- a/external/mit/lua/usr.bin/lua/Makefile +++ b/external/mit/lua/usr.bin/lua/Makefile @@ -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