'LUA_USE_READLINE' moved to the make file

This commit is contained in:
Roberto Ierusalimschy 2018-03-02 15:31:51 -03:00
parent 00008b8ed0
commit 0eb10c6303
2 changed files with 2 additions and 4 deletions

View File

@ -1,5 +1,5 @@
/*
** $Id: luaconf.h,v 1.264 2018/02/20 20:52:50 roberto Exp roberto $
** $Id: luaconf.h,v 1.265 2018/02/27 18:47:32 roberto Exp roberto $
** Configuration file for Lua
** See Copyright Notice in lua.h
*/
@ -61,14 +61,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 */
#endif
#if defined(LUA_USE_MACOSX)
#define LUA_USE_POSIX
#define LUA_USE_DLOPEN /* MacOS does not need -ldl */
#define LUA_USE_READLINE /* needs an extra library: -lreadline */
#endif

View File

@ -54,7 +54,7 @@ LOCAL = $(TESTS) $(CWARNS) -g -DEXTERNMEMCHECK
# enable Linux goodies
MYCFLAGS= $(LOCAL) -std=c99 -DLUA_USE_LINUX
MYCFLAGS= $(LOCAL) -std=c99 -DLUA_USE_LINUX -DLUA_USE_READLINE
MYLDFLAGS= $(LOCAL) -Wl,-E
MYLIBS= -ldl -lreadline