Source: an
Version: 1.2-5
Tags: patch upstream
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

an fails to cross build from source, because the upstream Makefile hard
codes the build architecture pkg-config. The attached patch makes it
substitutable to make an cross buildable. Please consider applying it.

Helmut
--- an-1.2.orig/Makefile
+++ an-1.2/Makefile
@@ -22,9 +22,10 @@
 CC:=gcc
 INSTALL:=install
 
-CFLAGS += $(shell pkg-config --cflags icu-i18n)
+PKG_CONFIG ?= pkg-config
+CFLAGS += $(shell $(PKG_CONFIG) --cflags icu-i18n)
 CPPFLAGS += -D_DEFAULT_SOURCE
-LIBS += $(shell pkg-config --libs icu-i18n)
+LIBS += $(shell $(PKG_CONFIG) --libs icu-i18n)
 
 BIN=an
 MAN=an.6

Reply via email to