Source: king-probe Version: 2.16.160404+git20200121.9b198c1-1 Tags: patch upstream User: debian-cr...@lists.debian.org Usertags: ftcbfs
king-probe fails to cross build from source, because the upstream Makefiles hard code the build architecture compiler. After making it substitutable, king-probe cross builds successfully. Please consider applying the attached patch. Helmut
--- king-probe-2.16.160404+git20200121.9b198c1.orig/Makefile +++ king-probe-2.16.160404+git20200121.9b198c1/Makefile @@ -5,10 +5,10 @@ parse.o atomprops.o stdconntable.o autobondrot.o hybrid_36_c.o .c.o: - cc -c $*.c $(CFLAGS) + $(CC) -c $*.c $(CFLAGS) probe: probe.o $(OBJLIST) - cc -o $@ probe.o $(OBJLIST) $(LFLAGS) + $(CC) -o $@ probe.o $(OBJLIST) $(LFLAGS) clean: @rm -f *.o *.ckp --- king-probe-2.16.160404+git20200121.9b198c1.orig/Makefile.linux +++ king-probe-2.16.160404+git20200121.9b198c1/Makefile.linux @@ -5,10 +5,10 @@ parse.o atomprops.o stdconntable.o autobondrot.o hybrid_36_c.o .c.o: - cc -c $*.c $(CFLAGS) + $(CC) -c $*.c $(CFLAGS) probe: probe.o $(OBJLIST) - cc -o $@ probe.o $(OBJLIST) $(LFLAGS) $(LDFLAGS) + $(CC) -o $@ probe.o $(OBJLIST) $(LFLAGS) $(LDFLAGS) clean: @rm -f *.o *.ckp