aboutsummaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@posteo.de>2016-06-29 14:27:37 +0200
committerWilliam Hubbs <w.d.hubbs@gmail.com>2016-07-13 16:52:05 -0500
commit8bca2cd4b3c710809131ac036456b34c223e8d12 (patch)
tree242e639245f16e83f56da3e7b25acd8db992761f /mk
parentac8ad169ae59fece38066c2e08ff57d53d737edd (diff)
Build: fix hardcoded pkg-config invocation
This fixes #89.
Diffstat (limited to 'mk')
-rw-r--r--mk/sys.mk1
-rw-r--r--mk/termcap.mk4
2 files changed, 3 insertions, 2 deletions
diff --git a/mk/sys.mk b/mk/sys.mk
index 948ec1d4..47d95267 100644
--- a/mk/sys.mk
+++ b/mk/sys.mk
@@ -11,6 +11,7 @@
AR?= ar
CP?= cp
+PKG_CONFIG?= pkg-config
ECHO?= echo
INSTALL?= install
RANLIB?= ranlib
diff --git a/mk/termcap.mk b/mk/termcap.mk
index 2d6ad01b..4890e35a 100644
--- a/mk/termcap.mk
+++ b/mk/termcap.mk
@@ -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