From 94b782ee107c9981e0eb2172bdada78bad462f30 Mon Sep 17 00:00:00 2001 From: Uli Heilmeier Date: Fri, 10 May 2019 12:24:38 +0200 Subject: [PATCH] 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 --- client/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/Makefile b/client/Makefile index 318e2f1bd..72b124d73 100644 --- a/client/Makefile +++ b/client/Makefile @@ -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