Source: axc
Version: 0.3.5-1
Tags: patch upstream
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

axc fails to cross build from source, because its upstream Makefile hard
codes the build architecture pkg-config in one occasion. It already uses
the standard substitution variable for every other case. Please consider
applying the attached patch to make it cross buildable.

Helmut
--- axc-0.3.5.orig/Makefile
+++ axc-0.3.5/Makefile
@@ -44,7 +44,7 @@
 	 $(LIBGCRYPT_LDFLAGS)
 
 REQPKG=libsignal-protocol-c
-REQPKG:=$(shell pkg-config --exists $(REQPKG) && echo '$(REQPKG)')
+REQPKG:=$(shell $(PKG_CONFIG) --exists $(REQPKG) && echo '$(REQPKG)')
 ifneq ($(REQPKG),)
 	PKGCFG_C += $(SIGNAL_CFLAGS)
 	PKGCFG_L += $(SIGNAL_LDFLAGS)

Reply via email to