From 343b4a1c9d6cb9aa5d2fed8596d5c9650e7a8c03 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 20 Feb 2025 21:24:52 +0100 Subject: [PATCH] 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