From ab7616635d7d67d4ce3a99723b32d415375d0f69 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sun, 12 Jul 2015 22:18:59 +0200 Subject: [PATCH] Build as PIE and with -fstack-protector --- src/project.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/project.conf b/src/project.conf index 3154a0b..0ec1b98 100644 --- a/src/project.conf +++ b/src/project.conf @@ -1,9 +1,9 @@ targets=xmleditor #cppflags=-D EMBEDDED cflags_force=-W `pkg-config --cflags libParser libDesktop` -cflags=-Wall -g -O2 -pedantic +cflags=-Wall -g -O2 -pedantic -fPIC -fstack-protector ldflags_force=`pkg-config --libs libParser libDesktop` -lintl -ldflags= +ldflags=-Wl,-pie dist=Makefile,callbacks.h,xmleditor.h [xmleditor]