--- 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)