Source: gdpc
Version: 2.2.5-6
Tags: patch upstream
User: helm...@debian.org
Usertags: rebootstrap

gdpc fails to cross build from source, because it fails finding
libraries with the build architecture pkg-config, which are only
requested for the host architecture by build-depends. After making
pkg-config substituable, dh_auto_make does supply the right value and
gdpc cross builds successfully. Please consider applying the attached
patch.

Helmut
Index: gdpc-2.2.5/Makefile
===================================================================
--- gdpc-2.2.5.orig/Makefile
+++ gdpc-2.2.5/Makefile
@@ -1,6 +1,7 @@
 CC = gcc
-FLAGS=$(CFLAGS) -g -Wall `pkg-config --cflags gtk+-2.0 gthread-2.0` -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED
-LIBS=`pkg-config --libs gtk+-2.0 gthread-2.0` -lm
+PKG_CONFIG ?= pkg-config
+FLAGS=$(CFLAGS) -g -Wall `$(PKG_CONFIG) --cflags gtk+-2.0 gthread-2.0` -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED
+LIBS=`$(PKG_CONFIG) --libs gtk+-2.0 gthread-2.0` -lm
 bindir ?= /usr/bin
 
 .c.o:

Reply via email to