Source: flip Version: 1.20-3 Tags: patch User: helm...@debian.org Usertags: rebootstrap
flip fails to cross build from source, because it uses the build architecture as linker. dh_auto_build supplies CC as a cross compiler, but does not set LD, because it sometimes needs to be cc and other times c++. Setting LD=$(CC) thus fixes the cross build. Alternatively, the upstream Makefile could set LD = $(CC), which would benefit other distributions as well. Please consider applying the attached patch. Helmut
diff --minimal -Nru flip-1.20/debian/changelog flip-1.20/debian/changelog --- flip-1.20/debian/changelog +++ flip-1.20/debian/changelog @@ -1,3 +1,10 @@ +flip (1.20-3.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Also override LD. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Wed, 06 Dec 2017 15:06:53 +0100 + flip (1.20-3) unstable; urgency=medium * debian/control diff --minimal -Nru flip-1.20/debian/rules flip-1.20/debian/rules --- flip-1.20/debian/rules +++ flip-1.20/debian/rules @@ -4,6 +4,9 @@ export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic -DBSD -DIX -DSTDINCLUDE export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed +override_dh_auto_build: + dh_auto_build -- 'LD=$$(CC)' + override_dh_auto_install: # See debian/install