Source: tstools
Version: 1.13~git20151030-1
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

tstools fails to cross build from source, because the upstream makefile
links with $(LD), which happens get default initialized to the build
architecture linker. Exporting it from dpkg's buildtools.mk makes
tstools cross buildable. Please consider applying the attached patch.

Helmut
diff --minimal -Nru tstools-1.13~git20151030/debian/changelog 
tstools-1.13~git20151030/debian/changelog
--- tstools-1.13~git20151030/debian/changelog   2019-10-01 17:34:56.000000000 
+0200
+++ tstools-1.13~git20151030/debian/changelog   2019-10-30 20:06:41.000000000 
+0100
@@ -1,3 +1,9 @@
+tstools (1.13~git20151030-2) UNRELEASED; urgency=medium
+
+  * Fix FTCBFS: Export a suitable LD. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Wed, 30 Oct 2019 20:06:41 +0100
+
 tstools (1.13~git20151030-1) unstable; urgency=medium
 
   * QA upload.
diff --minimal -Nru tstools-1.13~git20151030/debian/rules 
tstools-1.13~git20151030/debian/rules
--- tstools-1.13~git20151030/debian/rules       2019-10-01 17:23:17.000000000 
+0200
+++ tstools-1.13~git20151030/debian/rules       2019-10-30 20:06:40.000000000 
+0100
@@ -10,6 +10,8 @@
 export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
 
 include /usr/share/dpkg/default.mk
+-include /usr/share/dpkg/buildtools.mk
+export LD
 
 DEB_CFLAGS = $(shell dpkg-buildflags --get CFLAGS)
 DEB_LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS)

Reply via email to