mirror of
https://github.com/lua/lua
synced 2026-09-26 16:17:11 +03:00
lua.c loads 'readline' dynamically
(See comments in luaconf.h.) This change allows easier compilation, as Lua compiles and works even if the package 'readline' is absent from the system. Moreover, non-interactive uses don't load the library, making the stand-alone slightly faster for small loads.
This commit is contained in:
parent
781219dbe1
commit
366c855648
4 changed files with 90 additions and 29 deletions
4
makefile
4
makefile
|
|
@ -70,9 +70,9 @@ LOCAL = $(TESTS) $(CWARNS)
|
|||
|
||||
|
||||
# enable Linux goodies
|
||||
MYCFLAGS= $(LOCAL) -std=c99 -DLUA_USE_LINUX -DLUA_USE_READLINE
|
||||
MYCFLAGS= $(LOCAL) -std=c99 -DLUA_USE_LINUX
|
||||
MYLDFLAGS= $(LOCAL) -Wl,-E
|
||||
MYLIBS= -ldl -lreadline
|
||||
MYLIBS= -ldl
|
||||
|
||||
|
||||
CC= gcc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue