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

--- a/Makefile.conf
+++ b/Makefile.conf
@@ -151,3 +151,8 @@ ifneq ($(HOST),MINGW)
 # Required to compile on Linux without a warning about pread() and pwrite() functions.
 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
