Build executables with -fPIE

This commit is contained in:
Pierre Pronchery 2015-07-21 02:49:30 +02:00
parent 8598e112a5
commit 5bda617a99

View File

@ -1,7 +1,7 @@
targets=widget
cppflags_force=-I ../include
cflags_force=-W `pkg-config --cflags libSystem gtk+-2.0`
cflags=-Wall -g -O2 -pedantic -fPIC -fstack-protector
cflags=-Wall -g -O2 -pedantic -fstack-protector -fPIE
ldflags_force=`pkg-config --libs libSystem gtk+-2.0`
ldflags=-L $(OBJDIR)../src -lDesktop -Wl,-pie
dist=Makefile