
| Msg # 185 of 15322 on ZZLI4416, Saturday 10-03-25, 1:16 |
| From: HELMUT GROHNE |
| To: ALL |
| Subj: Bug#1117020: qdl FTCBFS: upstream Makefi |
From: helmut@subdivi.de Source: qdl Version: 2.2-1 Tags: patch upstream User: debian-cross@lists.debian.org 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 --- SoupGate-Win32 v1.05 * Origin: you cannot sedate... all the things you hate (1:229/2) |
328,136 visits
(c) 1994, bbs@darkrealms.ca