summaryrefslogtreecommitdiffstats
path: root/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile')
-rwxr-xr-xsrc/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index af7355e..e3770c7 100755
--- a/src/Makefile
+++ b/src/Makefile
@@ -92,7 +92,10 @@ ifneq (, $(shell which pkg-config))
# Any system with pkg-config
# NOTE: ncursesw (required)
- ifneq ($(shell pkg-config --exists ncursesw || echo 'no'),no)
+ ifeq ($(shell uname -s),Darwin)
+ # macOS' ncurses is built with wide-char support
+ LDFLAGS += -lncurses
+ else ifneq ($(shell pkg-config --exists ncursesw || echo 'no'),no)
CFLAGS += $(shell pkg-config --cflags ncursesw)
LDLIBS += $(shell pkg-config --libs ncursesw)
else ifneq ($(shell pkg-config --exists ncurses || echo 'no'),no)