aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-07-04 17:11:58 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-07-04 17:11:58 -0300
commit366c85564874d560b3608349f752e9e490f9002d (patch)
tree77426f1c700cf4c7aa15b0742cf6669c9166af7a /makefile
parent781219dbe16fc327f5b828e1ff6fa45ec3265cba (diff)
downloadlua-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--makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/makefile b/makefile
index 74801eef..58b12f8e 100644
--- a/makefile
+++ b/makefile
@@ -70,9 +70,9 @@ LOCAL = $(TESTS) $(CWARNS)
70 70
71 71
72# enable Linux goodies 72# enable Linux goodies
73MYCFLAGS= $(LOCAL) -std=c99 -DLUA_USE_LINUX -DLUA_USE_READLINE 73MYCFLAGS= $(LOCAL) -std=c99 -DLUA_USE_LINUX
74MYLDFLAGS= $(LOCAL) -Wl,-E 74MYLDFLAGS= $(LOCAL) -Wl,-E
75MYLIBS= -ldl -lreadline 75MYLIBS= -ldl
76 76
77 77
78CC= gcc 78CC= gcc