]> Zhao Yanbai Git Server - minix.git/commitdiff
build lua dynamically 40/2840/1
authorBen Gras <ben@minix3.org>
Sun, 28 Sep 2014 14:31:54 +0000 (16:31 +0200)
committerBen Gras <ben@minix3.org>
Sun, 28 Sep 2014 14:31:54 +0000 (16:31 +0200)
. allows modules to be loaded

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

Change-Id: I6b2d19c2c9b136f0d72d2f714027221c0b86b5ae

external/mit/lua/usr.bin/lua/Makefile

index 5a415d87e5aa40322078dd4449785046e498ae9f..71f1c14740a2f4b2f71c9ffe91294a664487585c 100644 (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