--- Makefile.orig	2018-05-02 20:18:47 UTC
+++ Makefile
@@ -14,7 +14,7 @@ ifeq ($(shell $(PKG_CONFIG) ncursesw && 
 	CFLAGS += $(shell $(PKG_CONFIG) --cflags ncursesw)
 	LDLIBS += $(shell $(PKG_CONFIG) --libs   ncursesw)
 else
-	LDLIBS += -lncurses
+	LDLIBS += -lncursesw
 endif
 
 DISTFILES = nlay nlay.1 nnn.c nnn.h nnn.1 Makefile README.md LICENSE
