Source: device-tree-compiler Version: 1.4.0+dfsg-2 Tags: patch User: [email protected] Usertags: rebootstrap
device-tree-compiler fails to cross build from source, because it uses the build architecture compiler. Thankfully, fixing that is a simple matter of exporting a suitable CC variable. Please consider applying the attached patch. Helmut
diff -u device-tree-compiler-1.4.0+dfsg/debian/changelog device-tree-compiler-1.4.0+dfsg/debian/changelog --- device-tree-compiler-1.4.0+dfsg/debian/changelog +++ device-tree-compiler-1.4.0+dfsg/debian/changelog @@ -1,3 +1,10 @@ +device-tree-compiler (1.4.0+dfsg-2.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Export triplet-prefixed CC, closes: #-1 + + -- Helmut Grohne <[email protected]> Thu, 08 Dec 2016 12:23:03 +0100 + device-tree-compiler (1.4.0+dfsg-2) unstable; urgency=medium * Fix out of date homepage url diff -u device-tree-compiler-1.4.0+dfsg/debian/rules device-tree-compiler-1.4.0+dfsg/debian/rules --- device-tree-compiler-1.4.0+dfsg/debian/rules +++ device-tree-compiler-1.4.0+dfsg/debian/rules @@ -10,6 +10,11 @@ export CFLAGS = -Wall -g -fPIC +include /usr/share/dpkg/architecture.mk +ifeq ($(origin CC),default) +export CC = $(DEB_HOST_GNU_TYPE)-gcc +endif + ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else

