Bug#839765: c2050 FTCBFS: uses build architecture compiler for linking
Source: c2050
Version: 0.3b-6
Tags: patch
User: helmutg@debian.org
Usertags: rebootstrap
c2050 fails to cross build from source, because it hardcodes gcc as the
compiler. Since debhelper 10.2.1, debhelper passes the right CC to make
(see #836988), but LD remains unset, because some projects need a C++
linker. So for supporting cross compilation, we need to pass LD here.
The attached patch makes cross builds succeed. Please consider appling
it.
Helmut
diff --minimal -Nru c2050-0.3b/debian/changelog c2050-0.3b/debian/changelog
--- c2050-0.3b/debian/changelog 2015-11-25 20:54:02.000000000 +0100
+++ c2050-0.3b/debian/changelog 2016-10-04 19:42:27.000000000 +0200
@@ -1,3 +1,10 @@
+c2050 (0.3b-6.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: Use provided CC for linking. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de> Tue, 04 Oct 2016 19:42:03 +0200
+
c2050 (0.3b-6) unstable; urgency=medium
* Team upload
diff --minimal -Nru c2050-0.3b/debian/rules c2050-0.3b/debian/rules
--- c2050-0.3b/debian/rules 2015-11-25 20:52:16.000000000 +0100
+++ c2050-0.3b/debian/rules 2016-10-04 19:42:00.000000000 +0200
@@ -9,6 +9,9 @@
%:
dh $@
+override_dh_auto_build:
+ dh_auto_build -- 'LD=$$(CC)'
+
override_dh_auto_install:
dh_auto_install --destdir=debian/printer-driver-c2050/
Reply to: