Build executables with -fPIE

This commit is contained in:
Pierre Pronchery 2015-07-21 02:53:01 +02:00
parent f1959b21f6
commit ef0a1efb4b
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
targets=camera
cflags_force=-W `pkg-config --cflags libDesktop`
cflags=-Wall -g -O2 -pedantic -fPIC -fstack-protector
cflags=-Wall -g -O2 -pedantic -fstack-protector -fPIE
ldflags_force=`pkg-config --libs libDesktop` -lintl
#for Gtk+ 3
#cflags_force=-W `pkg-config --cflags libDesktop gtk+-x11-3.0`

View File

@ -1,6 +1,6 @@
targets=gallery
cflags_force=-W `pkg-config --cflags gtk+-2.0`
cflags=-Wall -g -O2 -pedantic -fPIC -fstack-protector
cflags=-Wall -g -O2 -pedantic -fstack-protector -fPIE
ldflags_force=`pkg-config --libs glib-2.0`
#for Gtk+ 3
#cflags_force=-W `pkg-config --cflags gtk+-3.0`