Source: gkrellweather Version: 2.0.8-2.1 Tags: patch upstream User: helm...@debian.org Usertags: rebootstrap
gkrellweather fails to cross build from source, because the upstream Makefile hard codes the build architecture pkg-config. After making it substitutable, gkrellweather cross builds successfully. Please consider applying the attached patch. Helmut
--- gkrellweather-2.0.8.orig/Makefile +++ gkrellweather-2.0.8/Makefile @@ -1,7 +1,8 @@ PKGNAME = gkrellweather VERSION = 2.0.8 -CFLAGS += -O2 -std=gnu99 -Wall -fPIC `pkg-config gtk+-2.0 --cflags` -LIBS = `pkg-config gtk+-2.0 --libs` +PKG_CONFIG ?= pkg-config +CFLAGS += -O2 -std=gnu99 -Wall -fPIC `$(PKG_CONFIG) gtk+-2.0 --cflags` +LIBS = `$(PKG_CONFIG) gtk+-2.0 --libs` LDFLAGS += -shared PREFIX = /usr/local