chiark / gitweb /
cross-building: Do not include a makefile
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 22 Jan 2017 13:04:38 +0000 (13:04 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 22 Jan 2017 13:04:38 +0000 (13:04 +0000)
debian/changelog
debian/rules

index 17c0bdd..6dd3356 100644 (file)
@@ -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.
 
  --
 
index 625f4b1..b4f4dc5 100755 (executable)
 #
 # $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