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

tgt fails to cross build from source, because usr/Makefile hard codes
the build architecture pkg-config and thus misdetects the glusterfs
version. The attached patch makes pkg-config substitutable. Please
consider applying it.

Helmut
--- tgt-1.0.79.orig/usr/Makefile
+++ tgt-1.0.79/usr/Makefile
@@ -10,7 +10,8 @@
 endif
 
 # Check if we are using a glusterfs API version >= 7.6 (i.e. glusterfs >= 6)
-ifneq ($(shell pkg-config --atleast-version=7.6 glusterfs-api && echo 1),)
+PKG_CONFIG ?= pkg-config
+ifneq ($(shell $(PKG_CONFIG) --atleast-version=7.6 glusterfs-api && echo 1),)
 CFLAGS += -DHAVE_GFAPI_VER_7_6
 endif
 

Reply via email to