From 026bf5cdbb8f473c6a7dbcdd9626a5f98a15a7c0 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Wed, 23 Mar 2016 13:14:32 +0100 Subject: [PATCH] Build the keyboard widget with FORTIFY, SSP and RELRO --- src/widget/project.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/widget/project.conf b/src/widget/project.conf index aa8c01a..a5f3900 100644 --- a/src/widget/project.conf +++ b/src/widget/project.conf @@ -1,7 +1,8 @@ targets=keyboard cflags_force=-W `pkg-config --cflags libDesktop x11` -fPIC -cflags=-Wall -g -O2 -pedantic +cflags=-Wall -g -O2 -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all ldflags_force=`pkg-config --libs libDesktop x11` -lXtst -lintl +ldflags=-Wl,-z,relro -Wl,-z,now dist=Makefile [keyboard]