[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1085390: gkrellm-thinkbat FTCBFS: hard codes the build architecture pkg-config



Source: gkrellm-thinkbat
Version: 0.2.3-1
Tags: patch upstream
User: debian-cross@lists.debian.org
Usertags: ftcbfs

gkrellm-thinkbat fails to cross build from source, because the upstream
Makefile hard codes the build architecture pkg-config and thus fails to
locate dependencies that are only requested for the host architecture by
Build-Depends. I'm attaching a patch for your convenience.

Helmut
--- gkrellm-thinkbat-0.2.3.orig/Makefile
+++ gkrellm-thinkbat-0.2.3/Makefile
@@ -1,8 +1,9 @@
 VERSION = 0.2.3
 CC = gcc
+PKG_CONFIG ?= pkg-config
 CPPFLAGS +=
 CFLAGS += -I. -Wall -pedantic -O2
-INCLUDE = `pkg-config gtk+-2.0 --cflags` -fPIC -DVERSION=\"$(VERSION)\"
+INCLUDE = `$(PKG_CONFIG) gtk+-2.0 --cflags` -fPIC -DVERSION=\"$(VERSION)\"
 LDFLAGS += -shared -lm
 INSTALL ?= install
 INSTALLDIR = $(DESTDIR)/usr/lib/gkrellm2/plugins/

Reply to: