lua-users home
lua-l archive

Re: [5.1.4] Do I need those shared libraries?

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


On 2011年4月14日 12:09:07 +0200, Gilles Ganault
<gilles.ganault@free.fr> wrote:
>I'll get rid of -lreadline -lhistory (the other three are already
>installed in the appliance).
Mm... however, I get an error when recompiling without those two:
=============
# make clean
# make uclinux (simply does "$(MAKE) all")
...
bfin-linux-uclibc-gcc -o lua lua.o liblua.a -Wl,-E
-L/usr/src/baps/opt/uClinux/bfin-linux-uclibc/bfin-linux-uclibc/runtime/lib
-L/usr/src/baps/uClinux-dist/staging/usr/lib -lm -ldl
lua.o: In function `_pushline':
lua.c:(.text+0x38a): undefined reference to `_readline'
lua.o: In function `_dotty':
lua.c:(.text+0x5de): undefined reference to `_add_history'
collect2: ld returned 1 exit status
=============
FWIW, CFLAGS use "-DLUA_USE_LINUX". Is this the cause for the error,
or do I need to further edit Makefile so it ignores libreadline and
libhistory entirely?
Thank you.

AltStyle によって変換されたページ (->オリジナル) /