Bug#932065: sosi2osm FTCBFS: upstream Makefile hard codes build architecture pkg-config
Control: tags -1 pending Hi Helmut, On 7/14/19 11:56 AM, Helmut Grohne wrote: > 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. Thanks for the patch, I've added it in git and it will be included in the next upload. Kind Regards, Bas -- GPG Key ID: 4096R/6750F10AE88D4AF1 Fingerprint: 8182 DE41 7056 408D 6146 50D1 6750 F10A E88D 4AF1
Bug#932065: sosi2osm FTCBFS: upstream Makefile hard codes build architecture pkg-config
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)