Build: fix hardcoded pkg-config invocation

This fixes #89.
This commit is contained in:
Julian Ospald 2016-06-29 14:27:37 +02:00 committed by William Hubbs
parent ac8ad169ae
commit 8bca2cd4b3
2 changed files with 3 additions and 2 deletions

View File

@ -11,6 +11,7 @@
AR?= ar
CP?= cp
PKG_CONFIG?= pkg-config
ECHO?= echo
INSTALL?= install
RANLIB?= ranlib

View File

@ -1,6 +1,6 @@
ifeq (${MKTERMCAP},ncurses)
TERMCAP_CFLAGS:= $(shell pkg-config ncurses --cflags 2> /dev/null)
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