From cf76d8698a10ee301496285b22a9ddd61bd77ebf Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sat, 11 Jul 2015 15:16:56 +0200 Subject: [PATCH] Build the tools as PIE --- tools/project.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/project.conf b/tools/project.conf index d2a1f6e..5e19101 100644 --- a/tools/project.conf +++ b/tools/project.conf @@ -2,9 +2,9 @@ targets=AppBroker,AppClient cppflags_force=-I ../include cppflags= cflags_force=-W `pkg-config --cflags libSystem` -cflags=-Wall -g -O2 -pedantic -fstack-protector +cflags=-Wall -g -O2 -pedantic -fPIC -fstack-protector ldflags_force=-L../src `pkg-config --libs libSystem` -lApp -ldflags=-L$(PREFIX)/lib -Wl,-rpath,$(PREFIX)/lib +ldflags=-L$(PREFIX)/lib -Wl,-rpath,$(PREFIX)/lib -Wl,-pie dist=Makefile,appbroker.sh [AppBroker]