Bug#979604: ebook2cw FTCBFS: hard codes the build architecture compiler
Source: ebook2cw
Version: 0.8.3-1
Tags: patch upstream
User: debian-cross@lists.debian.org
Usertags: ftcbfs
Thanks for applying my previous cross build patch. Unfortunately,
upstream regressed in another way. They turned the $(CC) invocations
into hard coded gcc calls. That's the build architecture compiler and it
needs to be changed back to $(CC). Please consider applying the attached
patch.
Helmut
--- ebook2cw-0.8.3.orig/Makefile
+++ ebook2cw-0.8.3/Makefile
@@ -26,17 +26,17 @@
all: ebook2cw
ebook2cw: ebook2cw.c codetables.h
- gcc ebook2cw.c -pedantic -Wall -lm $(LDFLAGS) $(CFLAGS) -o ebook2cw
+ $(CC) ebook2cw.c -pedantic -Wall -lm $(LDFLAGS) $(CFLAGS) -o ebook2cw
msgfmt -o po/de.mo po/de.po
cgi: ebook2cw.c codetables.h
- gcc -static ebook2cw.c $(LDFLAGS) -lm $(CFLAGS) -D CGI -o cw.cgi
+ $(CC) -static ebook2cw.c $(LDFLAGS) -lm $(CFLAGS) -D CGI -o cw.cgi
cgibuffered: ebook2cw.c codetables.h
- gcc -static ebook2cw.c $(LDFLAGS) -lm $(CFLAGS) -D CGI -D CGIBUFFERED -o cw.cgi
+ $(CC) -static ebook2cw.c $(LDFLAGS) -lm $(CFLAGS) -D CGI -D CGIBUFFERED -o cw.cgi
static:
- gcc -static ebook2cw.c $(LDFLAGS) -lm $(CFLAGS) -o ebook2cw
+ $(CC) -static ebook2cw.c $(LDFLAGS) -lm $(CFLAGS) -o ebook2cw
install:
$(INSTALL) -d -v $(DESTDIR)/share/man/man1/
Reply to: