From 93f9c1e5aa18091077a1f27232b3bdb410e3f519 Mon Sep 17 00:00:00 2001 From: Bogomil Vasilev Date: Wed, 10 Dec 2014 14:43:45 +0200 Subject: [PATCH] Use better stack protection --- Makefile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index ca36715..be461ff 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,13 @@ CC=g++ -CPPFLAGS= -Wall \ - -Wextra \ - -pipe \ - -Wmissing-declarations \ - -pedantic \ +CPPFLAGS= -Wall \ + -Wextra \ + -pipe \ + -Wmissing-declarations \ + -pedantic \ + -fstack-protector-strong \ -O2 -LDFLAGS=-lncursesw +LDFLAGS=-lncursesw -Wl,-z,relro,-z,now SOURCES=main.cpp \ chess.cpp \