Source: figlet Version: 2.2.5-2 Tags: patch User: [email protected] Usertags: rebootstrap
figlet fails to cross build from source, because it defaults LD to gcc, which is not overridden by dh_auto_build (unlike CC). Defaulting LD to $(CC) makes the cross build succeed. Please consider applying the attached patch. Helmut
diff --minimal -Nru figlet-2.2.5/debian/changelog figlet-2.2.5/debian/changelog --- figlet-2.2.5/debian/changelog 2012-11-26 00:59:03.000000000 +0100 +++ figlet-2.2.5/debian/changelog 2017-01-27 10:43:30.000000000 +0100 @@ -1,3 +1,11 @@ +figlet (2.2.5-2.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Default LD from CC, which is set by dh_auto_build (closes: + #-1) + + -- Helmut Grohne <[email protected]> Fri, 27 Jan 2017 10:43:30 +0100 + figlet (2.2.5-2) unstable; urgency=low * Import packaging git repo to collab-maint diff --minimal -Nru figlet-2.2.5/debian/patches/makefile_set_debian_buildflags.patch figlet-2.2.5/debian/patches/makefile_set_debian_buildflags.patch --- figlet-2.2.5/debian/patches/makefile_set_debian_buildflags.patch 2012-06-16 00:37:26.000000000 +0200 +++ figlet-2.2.5/debian/patches/makefile_set_debian_buildflags.patch 2017-01-27 10:43:12.000000000 +0100 @@ -12,7 +12,8 @@ CC = gcc -CFLAGS = -g -O2 -Wall +CFLAGS = $(shell dpkg-buildflags --get CFLAGS) - LD = gcc +-LD = gcc ++LD = $(CC) -LDFLAGS = +LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS)

