Source: galleta Version: 1.0+20040505-9 Tags: patch upstream User: helm...@debian.org Usertags: rebootstrap
galleta fails to cross build from source, because the upstream Makefile hard codes the build architecture compiler. The attached patch makes the compiler substitutable and galleta cross buildable. Please consider applying it. Helmut
--- galleta-1.0+20040505.orig/src/Makefile +++ galleta-1.0+20040505/src/Makefile @@ -1,13 +1,13 @@ all: galleta galleta: galleta.c - gcc $(CFLAGS) $(LDFLAGS) $(CPPFLAGS) -o galleta galleta.c -lm -lc + $(CC) $(CFLAGS) $(LDFLAGS) $(CPPFLAGS) -o galleta galleta.c -lm -lc install: galleta cp galleta $(DESTDIR)/usr/bin galleta.exe: galleta.c - gcc -DCYGWIN -o galleta.exe galleta.c -lm -lc + $(CC) -DCYGWIN -o galleta.exe galleta.c -lm -lc installwin: galleta.exe cp galleta.exe ../bin