Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 brickos (0.9.0.dfsg-9) unstable; urgency=low
 .
   * Add -std=gnu89 to GCC's command line to enforce extern inline behaviour
     with GCC 5 (closes: #777807)
   * Also enable hardening build flags
   * Conforms with policy version 3.9.6
   * Integrated improved watch file. Thanks Bart Martens for putting it
     together.
Author: Michael Tautschnig <mt@debian.org>
Bug-Debian: http://bugs.debian.org/777807

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: http://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

--- brickos-0.9.0.dfsg.orig/Makefile.common
+++ brickos-0.9.0.dfsg/Makefile.common
@@ -75,8 +75,14 @@ ifdef BUILDING_HOST_UTILS
 #   defines for build of native compiled utilities
 # ----------------------------------------------------------------------------
 
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/buildflags.mk
+
+CFLAGS += -std=gnu89
 CFLAGS+=-O2 -Wall
 
+
 else  # ifndef BUILDING_HOST_UTILS
 
 # ----------------------------------------------------------------------------
