lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Thu, 17 Feb 2011 13:27:30 +0100, Gilles Ganault
<gilles.ganault@free.fr> wrote:
>Thanks for the tip. Is it OK to use those settings?
>
>MYCFLAGS = -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DLUA_USE_LINUX
>MYLIBS= -ldl -lreadline -lhistory -lncurses

After compiling libreadline and libhistory, I used the following
settings...

======================
CFLAGS += -Wall -O2 $(MYCFLAGS)
LDFLAGS += $(MYLDFLAGS)

LIBS = -Wl,-E -L/usr/src/baps/uClinux-dist/staging/usr/lib -lm
$(MYLIBS)

MYCFLAGS = -DLUA_USE_DLOPEN -DLUA_USE_LINUX
-I/usr/src/uClinux-dist/staging/usr/include
MYLDFLAGS =
MYLIBS= -ldl -lreadline -lhistory -lncurses
======================

... and it works, although...

1. I get this warning during compiling:

======================
In file included from lua.h:16,
                 from loadlib.c:19:
luaconf.h:38:1: warning: "LUA_USE_DLOPEN" redefined
<command line>:1:1: warning: this is the location of the previous
definition
======================

2. The arrow keys and CTRL shortcuts work, but hitting the Home/End
keys don't, and a ~ is displayed.

No biggy, though.

Thanks for your help.