diff -rauN lua/src/luaconf.h lua-no-readline-patch/src/luaconf.h --- lua/src/luaconf.h 2008-02-11 17:25:08.000000000 +0100 +++ lua-no-readline-patch/src/luaconf.h 2023-07-23 21:16:25.984847390 +0200 @@ -36,7 +36,7 @@ #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 */ +//#define LUA_USE_READLINE /* needs some extra libraries */ #endif #if defined(LUA_USE_MACOSX) diff -rauN lua/src/Makefile lua-no-readline-patch/src/Makefile --- lua/src/Makefile 2012-02-13 21:41:22.000000000 +0100 +++ lua-no-readline-patch/src/Makefile 2023-07-23 21:20:19.495189877 +0200 @@ -96,7 +96,7 @@ $(MAKE) all MYCFLAGS= linux: - $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses" + $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-rdynamic -ldl -lncurses" macosx: $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-lreadline"