freebsd-ports/devel/lua-posix/files/extrapatch-50-Makefile
Philip Paeps adb4c0b055 Add devel/lua-posix to work with Lua 5.0 and Lua 5.1 and turn devel/lua-posix
into a slave port of it.

PR:		ports/104990
Submitted by:	Andrew Turner <andrew+ports@fubar.geek.nz> (maintainer)
Repocopy by:	marcus
2006-11-02 00:38:06 +00:00

11 lines
303 B
Text

--- Makefile.orig Wed Nov 5 21:26:49 2003
+++ Makefile Mon Aug 7 00:38:38 2006
@@ -21,7 +21,7 @@
all: test
test: $T
- $(LUABIN)/lua -l$(MYNAME) test.lua
+ LD_PRELOAD=${LUA_LIBDIR}/liblua.so:${LUA_LIBDIR}/liblualib.so $(LUABIN)/lua -l$(MYNAME) test.lua
$T: $(OBJS)
$(CC) -o $@ -shared $(OBJS)