From: Aaron Marcher Date: Thu, 20 Apr 2017 20:33:10 +0000 (+0200) Subject: enable stack protector and compile to position independent executable X-Git-Url: https://git.atheridis.org/?a=commitdiff_plain;h=ac1a57ec30e8729166b6b890a0f33256218d1ef6;p=suckless%2Fslstatus.git enable stack protector and compile to position independent executable --- 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