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

--- a/Makefile.conf
+++ b/Makefile.conf
@@ -171,3 +171,8 @@ CFLAGS+=-D_FILE_OFFSET_BITS=64
 ifneq ($(HOST),MINGW)
   CFLAGS+=-D_POSIX_C_SOURCE=200809L
 endif
+
+# Hardening flags
+CFLAGS+=-g -fPIE -fstack-protector-strong -Wformat -Werror=format-security
+CFLAGS+=-Wdate-time -D_FORTIFY_SOURCE=2
+LDFLAGS+=-fPIE -pie -Wl,-z,relro -Wl,-z,now
