aboutsummaryrefslogtreecommitdiff
path: root/mk/termcap.mk
diff options
context:
space:
mode:
authorJohan Bergström <bugs@bergstroem.nu>2014-10-23 09:59:57 +1100
committerWilliam Hubbs <w.d.hubbs@gmail.com>2014-10-26 13:04:20 -0500
commitba0a11fc94d303e208dd364b06c1c2a75bcdd62b (patch)
treef8cbb7b8503b2fdc955fe374c227d2c7f01c20aa /mk/termcap.mk
parent7700e6fe796cabfa22eefddc024d66257a28d4dc (diff)
Pass ncurses cflags to build
Fixes #25 Note from William Hubbs: The original patch overwrote CFLAGS. I modified this patch to add the ncurses cflags to CPPFLAGS instead of overwriting CFLAGS.
Diffstat (limited to 'mk/termcap.mk')
-rw-r--r--mk/termcap.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/mk/termcap.mk b/mk/termcap.mk
index 6f590da6..2d6ad01b 100644
--- a/mk/termcap.mk
+++ b/mk/termcap.mk
@@ -1,11 +1,12 @@
ifeq (${MKTERMCAP},ncurses)
- LTERMCAP:= $(shell pkg-config ncurses --libs 2> /dev/null)
+TERMCAP_CFLAGS:= $(shell pkg-config ncurses --cflags 2> /dev/null)
+LTERMCAP:= $(shell pkg-config ncurses --libs 2> /dev/null)
ifeq ($(LTERMCAP),)
LIBTERMCAP?= -lncurses
else
LIBTERMCAP?= $(LTERMCAP)
endif
-CPPFLAGS+= -DHAVE_TERMCAP
+CPPFLAGS+= -DHAVE_TERMCAP ${TERMCAP_CFLAGS}
LDADD+= ${LIBTERMCAP}
else ifeq (${MKTERMCAP},termcap)
LIBTERMCAP?= -ltermcap