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

Bug#941142: gexec FTCBFS: uses the build architecture pkg-config



Source: gexec
Version: 0.4-2
Tags: patch upstream
User: debian-cross@lists.debian.org
Usertags: ftcbfs

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

Helmut
--- gexec-0.4.orig/Makefile
+++ gexec-0.4/Makefile
@@ -1,6 +1,7 @@
 CC = gcc
-LIBS = `pkg-config --libs gtk+-2.0`
-INCS = `pkg-config --cflags gtk+-2.0`
+PKG_CONFIG ?= pkg-config
+LIBS = `$(PKG_CONFIG) --libs gtk+-2.0`
+INCS = `$(PKG_CONFIG) --cflags gtk+-2.0`
 
 CFLAGS += -Wall -g
 CFLAGS += $(CPPFLAGS)

Reply to: