Source: imgui Version: 1.79+ds-1 Tags: patch upstream User: debian-cr...@lists.debian.org Usertags: ftcbfs
imgui fails to cross build from source, because the upstream Makefile hard codes the build architecture pkg-config. Please consider applying the attached patch to make pkg-config substitutable. dh_auto_build will substitute the correct pkg-config and imgui becomes cross buildable again. Helmut
--- imgui-1.79+ds.orig/Makefile +++ imgui-1.79+ds/Makefile @@ -14,9 +14,10 @@ CXXFLAGS += -fPIC LIBS := freetype2 -LIBS_CPPFLAGS := $(shell pkg-config --cflags-only-I $(LIBS)) -LIBS_CFLAGS := $(shell pkg-config --cflags-only-other $(LIBS)) -LIBS_LDFLAGS := $(shell pkg-config --libs $(LIBS)) +PKG_CONFIG ?= pkg-config +LIBS_CPPFLAGS := $(shell $(PKG_CONFIG) --cflags-only-I $(LIBS)) +LIBS_CFLAGS := $(shell $(PKG_CONFIG) --cflags-only-other $(LIBS)) +LIBS_LDFLAGS := $(shell $(PKG_CONFIG) --libs $(LIBS)) CPPFLAGS += $(LIBS_CPPFLAGS) CFLAGS += $(LIBS_CFLAGS)