From 830c6e01001cc5158d93c7dca091180a84e674d5 Mon Sep 17 00:00:00 2001
From: Allanis <allanis@saracraft.net>
Date: Thu, 4 Jul 2013 13:48:40 +0100
Subject: [PATCH] [Add] Stack protector flags to DEBUG build.

---
 bin/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/bin/Makefile b/bin/Makefile
index 4966f66..b98c3db 100644
--- a/bin/Makefile
+++ b/bin/Makefile
@@ -30,7 +30,8 @@ ifeq ($(OS),LINUX)
 endif
 ifdef DEBUG
 CFLAGS += -W -Wall -Wextra -Wshadow -Wpointer-arith -Wmissing-prototypes -Winline -Wcast-align \
-					-Wmissing-declarations -g3 -DDEBUG -DLUA_USE_APICHECK -std=c99
+					-Wmissing-declarations -fstack-protector -fstack-protector-all -g3 \
+					-DDEBUG -DLUA_USE_APICHECK -std=c99
 else
 CFLAGS += -O2 -funroll-loops -pipe -std=c99
 endif