Source: sosi2osm Version: 1.0.0-6 Tags: patch upstream User: debian-cr...@lists.debian.org Usertags: ftcbfs
sosi2osm fails to cross build from source, because the upstream Makefile hard codes the build architecture pkg-config. The attached patch makes it substitutable and sosi2osm becomes cross buildable. Please consider applying it. Helmut
--- sosi2osm-1.0.0.orig/Makefile +++ sosi2osm-1.0.0/Makefile @@ -1,8 +1,9 @@ PROGNAME=sosi2osm OBJFILES=sosi2osm.o sosi.o tag.o node.o -CPPFLAGS := $(CPPFLAGS) `pkg-config --cflags lua5.1-c++ fyba` -DLINUX -DUNIX -g -LDFLAGS := $(LDFLAGS) -lproj `pkg-config --libs lua5.1-c++ fyba` +PKG_CONFIG ?= pkg-config +CPPFLAGS := $(CPPFLAGS) `$(PKG_CONFIG) --cflags lua5.1-c++ fyba` -DLINUX -DUNIX -g +LDFLAGS := $(LDFLAGS) -lproj `$(PKG_CONFIG) --libs lua5.1-c++ fyba` all: $(PROGNAME)