From 0e7659200e3c881e354aab00b758d25408a21544 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Thu, 1 Sep 2016 05:03:28 +0200 Subject: Fix FTCBFS to pass suitable CC to make --- debian/changelog | 7 +++++++ debian/rules | 7 ++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 8f42c11..207b2f0 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +dmidecode (3.0-4) unstable; urgency=medium + + * debian/rules: Fix FTCBFS to pass suitable CC to make. (Closes: #835921). + Thanks to Helmut Grohne . + + -- Jörg Frings-Fürst Thu, 01 Sep 2016 04:59:53 +0200 + dmidecode (3.0-3) unstable; urgency=medium * Rename patches. diff --git a/debian/rules b/debian/rules index 05f3816..fce1c6c 100755 --- a/debian/rules +++ b/debian/rules @@ -2,11 +2,16 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all +include /usr/share/dpkg/architecture.mk +ifeq ($(origin CC),default) +CC = $(DEB_HOST_GNU_TYPE)-gcc +endif + %: dh ${@} override_dh_auto_build: - dh_auto_build -- CFLAGS="$(CFLAGS) $(CPPFLAGS) -Os -ansi" LDFLAGS="$(LDFLAGS)" + dh_auto_build -- CC=$(CC) CFLAGS="$(CFLAGS) $(CPPFLAGS) -Os -ansi" LDFLAGS="$(LDFLAGS)" override_dh_auto_install: dh_auto_install -- prefix=/usr -- cgit v1.2.3