Bug#882456: billard-gl FTCBFS: uses the build architecture compiler for linking

Helmut Grohne helmut at subdivi.de
Thu Nov 23 04:23:16 UTC 2017


Source: billard-gl
Version: 1.75-16
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap

billard-gl fails to cross build from source, because it uses the build
architecture compiler for linking. For compilation it uses standard
variables CC and CXX that get substituted by dh_auto_build, but for
linking it uses LINK=g++. Substituting that one as well, makes the cross
build succeed. This problem could be fixed upstream if they assigned
LINK = $(CXX). Please consider applying the attached patch.

Helmut
-------------- next part --------------
diff --minimal -Nru billard-gl-1.75/debian/changelog billard-gl-1.75/debian/changelog
--- billard-gl-1.75/debian/changelog	2015-11-05 16:58:35.000000000 +0100
+++ billard-gl-1.75/debian/changelog	2017-11-23 05:19:30.000000000 +0100
@@ -1,3 +1,10 @@
+billard-gl (1.75-16.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Also use the cross toolchain for linking. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Thu, 23 Nov 2017 05:19:30 +0100
+
 billard-gl (1.75-16) unstable; urgency=medium
 
   * Team upload.
diff --minimal -Nru billard-gl-1.75/debian/rules billard-gl-1.75/debian/rules
--- billard-gl-1.75/debian/rules	2015-11-05 16:58:35.000000000 +0100
+++ billard-gl-1.75/debian/rules	2017-11-23 05:17:19.000000000 +0100
@@ -20,6 +20,9 @@
 %:
 	dh $@ -Dsrc
 
+override_dh_auto_build:
+	dh_auto_build -- 'LINK=$$(CXX)'
+
 override_dh_auto_install:
 
 override_dh_installchangelogs:


More information about the Pkg-games-devel mailing list