Build executables with -fPIE

This commit is contained in:
Pierre Pronchery 2015-07-21 02:51:03 +02:00
parent 3ba1f85f4e
commit d345f6bdce

View File

@ -1,7 +1,7 @@
targets=compare,fontsel,progress targets=compare,fontsel,progress
#cflags_force=-W `pkg-config gtk+-3.0 --cflags` #cflags_force=-W `pkg-config gtk+-3.0 --cflags`
cflags_force=-W `pkg-config gtk+-2.0 --cflags` cflags_force=-W `pkg-config gtk+-2.0 --cflags`
cflags=-Wall -g -O2 -pedantic -fPIC -fstack-protector cflags=-Wall -g -O2 -pedantic -fstack-protector -fPIE
#ldflags_force=`pkg-config gtk+-3.0 --libs` #ldflags_force=`pkg-config gtk+-3.0 --libs`
ldflags_force=`pkg-config gtk+-2.0 --libs` ldflags_force=`pkg-config gtk+-2.0 --libs`
ldflags=-Wl,-pie ldflags=-Wl,-pie