From 6393edaf7e7fc3142a59eb913511b975888c7361 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Wed, 24 Aug 2011 19:07:05 +0200 Subject: Do not depend on readline Readline is only used in the standalone lua interpreter, and we don't really need that. It would be silly to pull readline as a dependency for this reason. --- libs/lua/src/Makefile | 4 +++- libs/lua/src/luaconf.h | 7 ++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/libs/lua/src/Makefile b/libs/lua/src/Makefile index e4a3cd6..ffc5715 100644 --- a/libs/lua/src/Makefile +++ b/libs/lua/src/Makefile @@ -96,7 +96,9 @@ generic: $(MAKE) all MYCFLAGS= linux: - $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses" + $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl" +# we don't want to depend on readline, see comment in luaconf.h +# $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses" macosx: $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-lreadline" diff --git a/libs/lua/src/luaconf.h b/libs/lua/src/luaconf.h index e2cb261..bc34b13 100644 --- a/libs/lua/src/luaconf.h +++ b/libs/lua/src/luaconf.h @@ -36,7 +36,12 @@ #if defined(LUA_USE_LINUX) #define LUA_USE_POSIX #define LUA_USE_DLOPEN /* needs an extra library: -ldl */ -#define LUA_USE_READLINE /* needs some extra libraries */ +/* + * we don't define LUA_USE_READLINE, because readline is only used in the standalone lua + * interpreter, and we don't really need that. It would be silly to pull readline as a dependency + * for this reason. + */ +//#define LUA_USE_READLINE /* needs some extra libraries */ #endif #if defined(LUA_USE_MACOSX) -- cgit v0.11.2