Source: damapper Version: 0.0+git20200322.b2c9d7f-2 Tags: patch upstream User: debian-cr...@lists.debian.org Usertags: ftcbfs
damapper fails to cross build from source, because the upstream Makefile hard codes the build architecture compiler gcc. Please consider applying the attached patch to make the compiler substitutable. Doing so will make damapper cross buildable. Helmut
--- damapper-0.0+git20200322.b2c9d7f.orig/Makefile +++ damapper-0.0+git20200322.b2c9d7f/Makefile @@ -5,10 +5,10 @@ all: $(ALL) damapper: damapper.c map.c map.h align.c align.h DB.c DB.h QV.c QV.h - gcc $(CFLAGS) $(shell dpkg-buildflags --get CFLAGS) -o damapper damapper.c map.c align.c DB.c QV.c -lpthread -lm + $(CC) $(CFLAGS) $(shell dpkg-buildflags --get CFLAGS) -o damapper damapper.c map.c align.c DB.c QV.c -lpthread -lm HPC.damapper: HPC.damapper.c DB.c DB.h QV.c QV.h - gcc $(CFLAGS) $(shell dpkg-buildflags --get CFLAGS) -o HPC.damapper HPC.damapper.c DB.c QV.c -lm + $(CC) $(CFLAGS) $(shell dpkg-buildflags --get CFLAGS) -o HPC.damapper HPC.damapper.c DB.c QV.c -lm clean: rm -f $(ALL)