From e5d3c4dd92e9712497bf3d01076de22a5751c6f7 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 25 Jul 2019 23:02:00 +0200 Subject: [PATCH] Support overriding pkg-config. Helps with crosscompiling. Patch by Helmut Grohne. --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b58db0f..23b458c 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ -CXXFLAGS := -std=gnu++14 -O2 -Wall -I. -g $(shell pkg-config libusb-1.0 --cflags) -pthread -LDFLAGS := $(shell pkg-config libusb-1.0 --libs) -pthread +PKG_CONFIG ?= pkg-config +CXXFLAGS := -std=gnu++14 -O2 -Wall -I. -g $(shell $(PKG_CONFIG) libusb-1.0 --cflags) -pthread +LDFLAGS := $(shell $(PKG_CONFIG) libusb-1.0 --libs) -pthread AR := ar LN := ln RANLIB := ranlib -- 2.39.2