--- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ # add -I/usr/pkg/include and -L/usr/pkg/lib to the options # below. CFLAGS+=-std=c99 -pedantic -Wall -Wextra -LDLIBS=-lncurses +LDLIBS=$(shell $(PKG_CONFIG) --libs ncurses) PREFIX=/usr/local BIN=nbwmon