Source: xob Version: 0.3-1 Tags: patch upstream User: [email protected] Usertags: ftcbfs
xob fails to cross build from source, because the upstream Makefile hard codes the build architecture pkg-config. As a result, it fails loating libraries that have only been requested for the host architecture via Build-Depends. Once making it substitutable, debhelper's substitution is honoured and xob cross builds successfully. Please consider applyig the attached patch and also forwarding it upstream. Helmut
--- xob-0.3.orig/Makefile +++ xob-0.3/Makefile @@ -14,8 +14,9 @@ endif OBJECTS = $(SOURCES:.c=.o) -CFLAGS += $(shell pkg-config --cflags $(LIBS)) -std=c99 -Wall -Wextra -pedantic -LDFLAGS += $(shell pkg-config --libs $(LIBS)) +PKG_CONFIG ?= pkg-config +CFLAGS += $(shell $(PKG_CONFIG) --cflags $(LIBS)) -std=c99 -Wall -Wextra -pedantic +LDFLAGS += $(shell $(PKG_CONFIG) --libs $(LIBS)) INSTALL ?= install INSTALL_PROGRAM ?= $(INSTALL)

