Source: pngcrush Version: 1.7.85-1 Tags: patch User: helm...@debian.org Usertags: rebootstrap
pngcrush fails to cross build from source, because it uses the build architecture linker. debhelper learned to pass cross compilers for CC and CXX for the makefile buildsystem recently, but does not override LD as it cannot know whether to use a C or C++ linker. Thus pngcrush, which sets LD=gcc, uses the build architecture linker. Setting LD=$(CC) fixes the cross build. Please consider applying the attached patch. Helmut
diff --minimal -Nru pngcrush-1.7.85/debian/changelog pngcrush-1.7.85/debian/changelog --- pngcrush-1.7.85/debian/changelog 2015-06-04 22:21:43.000000000 +0200 +++ pngcrush-1.7.85/debian/changelog 2017-01-11 11:14:25.000000000 +0100 @@ -1,3 +1,10 @@ +pngcrush (1.7.85-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Also use triplet-prefixed gcc as LD. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Wed, 11 Jan 2017 11:14:25 +0100 + pngcrush (1.7.85-1) unstable; urgency=medium * New upstream release. diff --minimal -Nru pngcrush-1.7.85/debian/rules pngcrush-1.7.85/debian/rules --- pngcrush-1.7.85/debian/rules 2015-06-04 22:21:43.000000000 +0200 +++ pngcrush-1.7.85/debian/rules 2017-01-11 11:14:23.000000000 +0100 @@ -4,7 +4,7 @@ dh $@ override_dh_auto_build: - dh_auto_build + dh_auto_build -- 'LD=$$(CC)' docbook-to-man debian/pngcrush.sgml > pngcrush.1 sed -e '1,/^<pre>$$/d' -e '/<\/pre>/,$$d' < ChangeLog.html > changelog