Source: dlm Version: 4.0.7-3 Tags: patch upstream dlm fails to cross build from source, because the upstream Makefile hard codes the build architecture pkg-config. The attached patch makes pkg-config substitutable. dh_auto_build substitutes it and dlm becomes cross buildable. Please consider applying it.
Helmut
--- dlm-4.0.7.orig/dlm_controld/Makefile +++ dlm-4.0.7/dlm_controld/Makefile @@ -61,10 +61,11 @@ LIB_CFLAGS += $(BIN_CFLAGS) LIB_LDFLAGS += -Wl,-z,relro -pie +PKG_CONFIG ?= pkg-config ifeq ($(USE_SD_NOTIFY),yes) - BIN_CFLAGS += $(shell pkg-config --cflags libsystemd) \ + BIN_CFLAGS += $(shell $(PKG_CONFIG) --cflags libsystemd) \ -DUSE_SD_NOTIFY - BIN_LDFLAGS += $(shell pkg-config --libs libsystemd) + BIN_LDFLAGS += $(shell $(PKG_CONFIG) --libs libsystemd) endif all: $(LIB_TARGET) $(BIN_TARGET)