Description: Use hardening flags in Makefile.conf.
Author: Bas Couwenberg <sebastic@xs4all.nl>

--- a/Makefile.conf
+++ b/Makefile.conf
@@ -31,7 +31,6 @@ datadir=$(prefix)/share/routino
 CC=gcc
 LD=gcc
 
-
 # Language dialect selection
 CFLAGS=-std=c99
 
@@ -79,3 +78,9 @@ CFLAGS+=-D_FILE_OFFSET_BITS=64
 
 # Required to compile on Linux without a warning about pread() and pwrite() functions.
 CFLAGS+=-D_POSIX_C_SOURCE=200809L
+
+
+# Hardening flags
+CFLAGS+=-fstack-protector-strong -Wformat -Werror=format-security
+CFLAGS+=-D_FORTIFY_SOURCE=2
+LDFLAGS+=-Wl,-z,relro
