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.
This commit is contained in:
parent
7700e6fe79
commit
ba0a11fc94
@ -1,11 +1,12 @@
|
|||||||
ifeq (${MKTERMCAP},ncurses)
|
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),)
|
ifeq ($(LTERMCAP),)
|
||||||
LIBTERMCAP?= -lncurses
|
LIBTERMCAP?= -lncurses
|
||||||
else
|
else
|
||||||
LIBTERMCAP?= $(LTERMCAP)
|
LIBTERMCAP?= $(LTERMCAP)
|
||||||
endif
|
endif
|
||||||
CPPFLAGS+= -DHAVE_TERMCAP
|
CPPFLAGS+= -DHAVE_TERMCAP ${TERMCAP_CFLAGS}
|
||||||
LDADD+= ${LIBTERMCAP}
|
LDADD+= ${LIBTERMCAP}
|
||||||
else ifeq (${MKTERMCAP},termcap)
|
else ifeq (${MKTERMCAP},termcap)
|
||||||
LIBTERMCAP?= -ltermcap
|
LIBTERMCAP?= -ltermcap
|
||||||
|
Loading…
Reference in New Issue
Block a user