From 84de00e9a0eb06d8473e5677aec1e6c297268a43 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 17 Oct 2017 15:11:28 +0200 Subject: Applying patch from Helmut Grohne to fix FTBFS when cross-compiling (Closes: #871605). Signed-off-by: Daniel Baumann --- debian/rules | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/debian/rules b/debian/rules index 6057e7c..9a92972 100755 --- a/debian/rules +++ b/debian/rules @@ -1,12 +1,16 @@ #!/usr/bin/make -f -DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) +include /usr/share/dpkg/architecture.mk + +ifeq ($(origin CC),default) +CC = $(DEB_HOST_GNU_TYPE)-gcc +endif %: dh ${@} override_dh_auto_configure: - dh_auto_configure -- --enable-shared --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) + dh_auto_configure -- --enable-shared --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) 'CC=$(CC)' override_dh_auto_install: dh_auto_install -- LDCONFIG=/bin/true -- cgit v1.2.3