From a36bf2e6bdd5d8fc5876e54b6e12f39b43bd042a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Jeli=C5=84ski?= <59468166+ajelinski@users.noreply.github.com> Date: Wed, 18 Aug 2021 14:12:21 +0200 Subject: [PATCH] Makefile: Enable overriding `pkg-config` (#107) Sometimes there's a need to precise which `pkg-config` is to be used. Now `pkg-config`'s name or path can be overridden with `PKG_CONFIG`. Fixes #106. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4882d9c..493539b 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ -CAPNP_CXX_FLAGS=$(shell pkg-config capnp --cflags --libs) +PKG_CONFIG ?= pkg-config +CAPNP_CXX_FLAGS=$(shell $(PKG_CONFIG) capnp --cflags --libs) ifeq ($(CAPNP_CXX_FLAGS),) $(warning "Warning: pkg-config failed to find compilation configuration for capnp.")