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.
   * Use system jquery in brickos-doc
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/util/Makefile
+++ brickos-0.9.0.dfsg/util/Makefile
@@ -33,7 +33,7 @@ strip::
 
 # build our one local program
 fontdesign$(EXT):	fontdesign.c
-	$(CC) -o $@ $< $(CFLAGS)
+	$(CC) -o $@ $< $(CFLAGS) $(LDFLAGS)
 
 install:: install-stamp
 
--- brickos-0.9.0.dfsg.orig/util/dll-src/Makefile
+++ brickos-0.9.0.dfsg/util/dll-src/Makefile
@@ -71,10 +71,10 @@ uninstall:
 	rm -f install-stamp $(mandir)/man1/$(MAN1) $(bindir)/$(EXE1)
 
 $(TARGET1):  $(OBJS1)
-	$(CC) -o $@ $(OBJS1) $(LIBS) $(CFLAGS)
+	$(CC) -o $@ $(OBJS1) $(LIBS) $(CFLAGS) $(LDFLAGS)
 
 $(TARGET2):  $(OBJS2)
-	$(CC) -o $@ $(OBJS2) $(LIBS) $(CFLAGS)
+	$(CC) -o $@ $(OBJS2) $(LIBS) $(CFLAGS) $(LDFLAGS)
 
 %.o: %.c
 	$(CC) -o $@ -c $< $(CFLAGS)
@@ -83,7 +83,7 @@ $(TARGET2):  $(OBJS2)
 	$(CC) -o $@ -c $< $(CFLAGS)
 
 ../%$(EXT): %.c
-	$(CC) -o $@ $< $(CFLAGS)
+	$(CC) -o $@ $< $(CFLAGS) $(LDFLAGS)
 
 # remove debug symbols
 strip:
--- brickos-0.9.0.dfsg.orig/util/firmdl/Makefile
+++ brickos-0.9.0.dfsg/util/firmdl/Makefile
@@ -18,10 +18,10 @@ all:: fastdl.h $(ALL_TARGETS)
 	@# nothing to do here but do it silently
 
 $(MKIMG): mkimg.o srec.o
-	$(CC) $^ -o $@ $(CFLAGS)
+	$(CC) $^ -o $@ $(CFLAGS) $(LDFLAGS)
 
 ../$(FIRMDL3): firmdl.o srec.o rcx_comm.o
-	$(CC) $^ -o $@ $(CFLAGS)
+	$(CC) $^ -o $@ $(CFLAGS) $(LDFLAGS)
 
 fastdl.h: $(MKIMG) fastdl.srec
 	./$(MKIMG) fastdl.srec > $@
