Build with -fstack-protector and executables as PIE

This commit is contained in:
Pierre Pronchery 2015-07-12 21:43:15 +02:00
parent 51292305b6
commit 3523d31417
4 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
targets=password,slider,template
cppflags_force=-I ../../include
cppflags=
cflags=-Wall -g -O2 -pedantic -fPIC
cflags=-Wall -g -O2 -pedantic -fPIC -fstack-protector
#for Gtk+ 2
cflags_force=-W `pkg-config --cflags libSystem gtk+-2.0`
ldflags_force=-W `pkg-config --libs libSystem gtk+-2.0`

View File

@ -1,7 +1,7 @@
targets=colors,gtk-demo,logo,template,xscreensaver,xterm
cppflags_force=-I ../../include
cppflags=
cflags=-Wall -g -O2 -pedantic -fPIC
cflags=-Wall -g -O2 -pedantic -fPIC -fstack-protector
#for Gtk+ 2
cflags_force=-W `pkg-config --cflags libSystem gtk+-2.0 x11`
ldflags_force=-W `pkg-config --libs libSystem gtk+-2.0 x11`

View File

@ -2,9 +2,9 @@ subdirs=auth,demos,plugins
targets=locker,lockerctl
#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` -lintl
ldflags=
ldflags=-Wl,-pie
dist=Makefile,locker.h
[locker]

View File

@ -1,5 +1,5 @@
targets=locker-test
cflags=-Wall -g -O2
cflags=-Wall -g -O2 -pedantic -fPIC -fstack-protector
#for Gtk+ 2
cflags_force=-W `pkg-config --cflags libSystem gtk+-2.0`
ldflags_force=`pkg-config --libs libSystem gtk+-2.0`