From 16cee377dc25f8d5ad1f3735cad9c5f782d2d791 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 22 Jan 2017 13:04:38 +0000 Subject: [PATCH] cross-building: Do not include a makefile --- debian/changelog | 2 +- debian/rules | 12 +++++------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/debian/changelog b/debian/changelog index 17c0bdd..6dd3356 100644 --- a/debian/changelog +++ b/debian/changelog @@ -6,7 +6,7 @@ authbind (2.1.2~) unstable; urgency=low * Fix one-letter typo in previous changelog entry. * Add -n to gzip -9 rune, to help reproducibility. Closes:#777727. * Fix FTCBFS: Use triplet-prefixed build tools. - Patch from Helmut Grohne. Closes: #851206. + Patch from Helmut Grohne, modified. Closes: #851206. -- diff --git a/debian/rules b/debian/rules index 625f4b1..b4f4dc5 100755 --- a/debian/rules +++ b/debian/rules @@ -20,13 +20,6 @@ # # $Id$ --include /usr/share/dpkg/architecture.mk -ifneq ($(DEB_HOST_GNU_TYPE),) -TOOL_PREFIX=$(DEB_HOST_GNU_TYPE)- -endif -ifeq ($(origin CC),default) -CC=$(TOOL_PREFIX)gcc -endif SHELL=/bin/bash package=authbind @@ -35,6 +28,11 @@ minor=0 arch = $(shell dpkg --print-architecture) +TOOL_PREFIX = $(shell set -x; a=`dpkg-architecture -q DEB_HOST_GNU_TYPE`; echo $$a$${a+-}) +ifeq ($(origin CC),default) +CC=$(TOOL_PREFIX)gcc +endif + export SOURCE_DATE_EPOCH = $(shell date -d "$$(dpkg-parsechangelog --count 1 -SDate)" +%s) INSTALL = install -- 2.30.2