client/Makefile: use brew libreadline on macOS

Make sure we use libreadline from brew and not the default macOS shipped one.
Otherwise compilation fails for undefined rl_event_hook
This commit is contained in:
Uli Heilmeier 2019-05-10 12:24:38 +02:00
parent 107b3873fb
commit 94b782ee10

View file

@ -72,6 +72,8 @@ else
LUAPLATFORM = macosx
OBJCSRCS = util_darwin.m
LDFLAGS += -framework Foundation -framework AppKit
LDLIBS := -L/usr/local/opt/readline/lib $(LDLIBS)
LIBS := -I/usr/local/opt/readline/include $(LIBS)
else
LUALIB += -ldl
LDLIBS += -ltermcap -lncurses