summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2016-08-30 14:27:55 +0200
committerDidier Raboud <odyx@debian.org>2018-02-23 20:56:18 +0100
commit939189709d4efdd9500e92385c5e4e5db525a223 (patch)
tree0cc714926192de5717da16ef4a6813c7e40e6ab6
parent048e0ff6edc1121d688856a34383367ea2018197 (diff)
Allow replacing pkg-config with <triplet>-pkg-config
Bug-Debian: https://bugs.debian.org/836018 Gbp-Pq: Name 0005-Allow-replacing-pkg-config-with-triplet-pkg-config.patch
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4f3634a..5007881 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,8 @@ PROG = usb_modeswitch
VERS = 2.5.2
CC ?= gcc
CFLAGS += -Wall
-LIBS = `pkg-config --libs --cflags libusb-1.0`
+PKG_CONFIG ?= pkg-config
+LIBS = `$(PKG_CONFIG) --libs --cflags libusb-1.0`
RM = /bin/rm -f
OBJS = usb_modeswitch.c
PREFIX = $(DESTDIR)/usr