Bug#901348: unalz FTCBFS: uses the build architecture C++ compiler
Thanks for reporting this.
How about using the makefile variable $(CXX) instead of environment
variable, just for consistency.
diff --git a/debian/rules b/debian/rules
index 4c2aa90..9d39591 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,7 +16,7 @@ XP=xsltproc -''-nonet
dh $@
override_dh_auto_build:
- dh_auto_build -- linux-utf8 CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
+ dh_auto_build -- linux-utf8 CFLAGS="$(CFLAGS)"
LDFLAGS="$(LDFLAGS)" CPP="$(CXX)"
$(XP) -o debian/unalz.1 $(DB2MAN) debian/unalz.dbk
iconv -f EUC-KR -t UTF-8 < readme.txt > debian/readme.txt
2018-06-12 3:55 GMT+09:00 Helmut Grohne <helmut@subdivi.de>:
> Source: unalz
> Version: 0.65-6
> Tags: patch
> User: helmutg@debian.org
> Usertags: rebootstrap
>
> unalz fails to cross build from source, because it uses a non-standard
> variable (CPP) for the C++ compiler and thus dh_auto_build does not
> provide it. After renaming the variable, unalz cross builds
> successfully. Please consider applying the attached patch.
>
> Helmut
Reply to: