Source: notmuch-addrlookup
Version: 9-1
Tags: patch upstream
User: [email protected]
Usertags: rebootstrap

notmuch-addrlookup fails to cross build from source, because it hard
codes the build architecture pkg-config. Making pkg-config substitutable
is sufficient for making notmuch-addrlookup cross buildable. Please
consider applying the attached patch.

Helmut
--- notmuch-addrlookup-9.orig/Makefile
+++ notmuch-addrlookup-9/Makefile
@@ -3,8 +3,9 @@
 # Adrian Perez, 2014-01-06 12:23
 #
 
-GLIB_CFLAGS := $(shell pkg-config glib-2.0 --cflags)
-GLIB_LDLIBS := $(shell pkg-config glib-2.0 --libs)
+PKG_CONFIG ?= pkg-config
+GLIB_CFLAGS := $(shell $(PKG_CONFIG) glib-2.0 --cflags)
+GLIB_LDLIBS := $(shell $(PKG_CONFIG) glib-2.0 --libs)
 
 OPTFLAGS ?= -O2
 LDLIBS  += -lnotmuch $(GLIB_LDLIBS)

Reply via email to