summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog7
-rwxr-xr-xdebian/rules7
2 files changed, 13 insertions, 1 deletions
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 <helmut@subdivi.de>.
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> 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