From afa05409348fd3aa50ea9f491300ca00efb35c8d Mon Sep 17 00:00:00 2001 From: Zhiming Wang Date: Sun, 16 Apr 2017 02:17:50 -0400 Subject: Makefile: use libncurses instead of libncursesw on Darwin macOS 10.12.4 and many earlier versions have libncurses 5.4 with wide character support, but not libncursesw. --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 54088a7..c07e950 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,11 @@ PREFIX = /usr/local MANPREFIX = $(PREFIX)/share/man CFLAGS += -O3 -march=native -Wall -Wextra -Wno-unused-parameter -LDLIBS = -lncursesw +ifeq ($(shell uname), Darwin) + LDLIBS = -lncurses +else + LDLIBS = -lncursesw +endif DISTFILES = nnn.c config.def.h nnn.1 Makefile README.md LICENSE LOCALCONFIG = config.h -- cgit v1.2.3-70-g09d2