Source: xa
Version: 2.3.8-2
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

xa fails to cross build from source, because it uses the build
architecture compiler as linker via the LD variable. dh_auto_build does
not substitute this variable, because it is used inconsistently in
different projects. After substituting it to the C compiler, xa cross
builds successfully. Please consider applying the attached patch.

Helmut
diff -u xa-2.3.8/debian/changelog xa-2.3.8/debian/changelog
--- xa-2.3.8/debian/changelog
+++ xa-2.3.8/debian/changelog
@@ -1,3 +1,10 @@
+xa (2.3.8-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass the right C compiler as LD. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sat, 04 Jan 2020 19:09:49 +0100
+
 xa (2.3.8-2) unstable; urgency=low
 
   * debian/control:
diff -u xa-2.3.8/debian/rules xa-2.3.8/debian/rules
--- xa-2.3.8/debian/rules
+++ xa-2.3.8/debian/rules
@@ -1,5 +1,8 @@
 #!/usr/bin/make -f
 
+override_dh_auto_build:
+       dh_auto_build -- LD='$$(CC)'
+
 override_dh_auto_install:
        make install DESTDIR=$(CURDIR)/debian/xa65/usr
 

Reply via email to