this change fixes the FTBFS on Debian hurd-* and kfreebsd-*.
* Update build-dependencies to permit tcl8.6. Closes:#818475.
* Replace ad-hocery with use of offsetof/typeof. Closes:#812718.
+ * Honour dpkg-architecture's DEB_HOST_GNU_TYPE, to fix cross-building.
-- Ian Jackson <ijackson@chiark.greenend.org.uk> Tue, 24 Jan 2017 13:14:06 +0000
tclh:=$(firstword $(wildcard /usr/include/tcl8.*/tcl.h))
tclversion:=$(patsubst /usr/include/tcl%/tcl.h,%,$(tclh))
+garch := $(shell dpkg-architecture -q DEB_HOST_GNU_TYPE)
+ifneq ($(garch),)
+
+ifeq ($(origin CC),default)
+export CC=$(garch)-gcc
+endif
+
+endif # $garch
+
define checkdir
test -f hbytes/hbytes.tct
endef