diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-07-04 17:11:58 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-07-04 17:11:58 -0300 |
| commit | 366c85564874d560b3608349f752e9e490f9002d (patch) | |
| tree | 77426f1c700cf4c7aa15b0742cf6669c9166af7a /makefile | |
| parent | 781219dbe16fc327f5b828e1ff6fa45ec3265cba (diff) | |
| download | lua-366c85564874d560b3608349f752e9e490f9002d.tar.gz lua-366c85564874d560b3608349f752e9e490f9002d.tar.bz2 lua-366c85564874d560b3608349f752e9e490f9002d.zip | |
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.
Diffstat (limited to 'makefile')
| -rw-r--r-- | makefile | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -70,9 +70,9 @@ LOCAL = $(TESTS) $(CWARNS) | |||
| 70 | 70 | ||
| 71 | 71 | ||
| 72 | # enable Linux goodies | 72 | # enable Linux goodies |
| 73 | MYCFLAGS= $(LOCAL) -std=c99 -DLUA_USE_LINUX -DLUA_USE_READLINE | 73 | MYCFLAGS= $(LOCAL) -std=c99 -DLUA_USE_LINUX |
| 74 | MYLDFLAGS= $(LOCAL) -Wl,-E | 74 | MYLDFLAGS= $(LOCAL) -Wl,-E |
| 75 | MYLIBS= -ldl -lreadline | 75 | MYLIBS= -ldl |
| 76 | 76 | ||
| 77 | 77 | ||
| 78 | CC= gcc | 78 | CC= gcc |
