From 4940b47fd1314e991e1f737f3c86f38f2942e70e Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sun, 12 Jul 2015 21:14:09 +0200 Subject: [PATCH] Build as PIE and with -fstack-protector --- src/project.conf | 4 ++-- tools/project.conf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/project.conf b/src/project.conf index 7bc0a20..647aba1 100644 --- a/src/project.conf +++ b/src/project.conf @@ -1,9 +1,9 @@ targets=editor #cppflags=-D EMBEDDED cflags_force=-W `pkg-config --cflags libDesktop` -cflags=-Wall -g -O2 -pedantic +cflags=-Wall -g -O2 -pedantic -fPIC -fstack-protector ldflags_force=`pkg-config --libs libDesktop` -lm -lintl -ldflags= +ldflags=-Wl,-pie dist=Makefile,callbacks.h,editor.h,filter.h [editor] diff --git a/tools/project.conf b/tools/project.conf index 1558808..a9d15a3 100644 --- a/tools/project.conf +++ b/tools/project.conf @@ -1,8 +1,8 @@ targets=filter cflags_force=-W `pkg-config --cflags libSystem` -cflags=-Wall -g -O2 -pedantic +cflags=-Wall -g -O2 -pedantic -fPIC -fstack-protector ldflags_force=`pkg-config --libs libSystem` -lintl -ldflags= +ldflags=-Wl,-pie dist=Makefile [filter]