Source: qdl
Version: 2.2-1
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs

qdl fails to cross build from source, because the upstream Makefile hard 
codes the build architecture pkg-config. Once making it substitutable - 
and thus picking up the value passed by dh_auto_build - it cross builds 
just fine. I'm attaching a patch for your convenience.

Helmut
--- qdl-2.2.orig/Makefile
+++ qdl-2.2/Makefile
@@ -2,8 +2,9 @@
 RAMDUMP := qdl-ramdump
 VERSION := $(or $(VERSION), $(shell git describe --dirty --always --tags 2>/dev/null), "unknown-version")
 
-CFLAGS += -O2 -Wall -g `pkg-config --cflags libxml-2.0 libusb-1.0`
-LDFLAGS += `pkg-config --libs libxml-2.0 libusb-1.0`
+PKG_CONFIG ?= pkg-config
+CFLAGS += -O2 -Wall -g `$(PKG_CONFIG) --cflags libxml-2.0 libusb-1.0`
+LDFLAGS += `$(PKG_CONFIG) --libs libxml-2.0 libusb-1.0`
 ifeq ($(OS),Windows_NT)
 LDFLAGS += -lws2_32
 endif

Reply via email to