summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Marcher <info@nulltime.net>2017-04-20 22:33:10 +0200
committerAaron Marcher <info@nulltime.net>2017-04-20 22:33:10 +0200
commitdf1aa824d49c82c961b608d501f8c4f137aab57e (patch)
tree346224a6db2d9e124ce5615cb4ec0e1c496be68f
parent56305e5a5b44da7a15c7d3a47a4ad1b79095193d (diff)
enable stack protector and compile to position independent executable
-rw-r--r--config.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.mk b/config.mk
index 7196190..67fd628 100644
--- a/config.mk
+++ b/config.mk
@@ -11,7 +11,7 @@ LIBS = -L/usr/lib -lc -L${X11LIB} -lX11
CPPFLAGS = -D_GNU_SOURCE
# -Wno-unused-function for routines not activated by user
-CFLAGS = -std=c99 -pedantic -Wno-unused-function -Wall -Wextra -Os ${INCS} ${CPPFLAGS}
+CFLAGS = -std=c99 -pedantic -Wno-unused-function -Wall -Wextra -Os -fstack-protector-strong -fstack-check -fPIE ${INCS} ${CPPFLAGS}
LDFLAGS = ${LIBS}
CC = cc