From: Steinar H. Gunderson Date: Thu, 25 Jul 2019 21:02:00 +0000 (+0200) Subject: Support overriding pkg-config. X-Git-Tag: 0.7.5~6 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=e5d3c4dd92e9712497bf3d01076de22a5751c6f7;hp=0c0182f453e8bc26e630615ea6d2a2f05e868fde;p=bmusb Support overriding pkg-config. Helps with crosscompiling. Patch by Helmut Grohne. --- 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