diff options
Diffstat (limited to 'debian/patches/0004-Allow-replacing-pkg-config-with-triplet-pkg-config.patch')
-rw-r--r-- | debian/patches/0004-Allow-replacing-pkg-config-with-triplet-pkg-config.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/patches/0004-Allow-replacing-pkg-config-with-triplet-pkg-config.patch b/debian/patches/0004-Allow-replacing-pkg-config-with-triplet-pkg-config.patch new file mode 100644 index 0000000..e22f051 --- /dev/null +++ b/debian/patches/0004-Allow-replacing-pkg-config-with-triplet-pkg-config.patch @@ -0,0 +1,23 @@ +From: Helmut Grohne <helmut@subdivi.de> +Date: Tue, 30 Aug 2016 14:27:55 +0200 +Subject: Allow replacing pkg-config with <triplet>-pkg-config + +Bug-Debian: https://bugs.debian.org/836018 +--- + Makefile | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index bcd512f..aa1c5c8 100644 +--- a/Makefile ++++ b/Makefile +@@ -2,7 +2,8 @@ PROG = usb_modeswitch + VERS = 2.6.1 + CC ?= gcc + CFLAGS += -Wall -Wno-deprecated-declarations +-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 |