Build with -fstack-protector and executables as PIE
This commit is contained in:
parent
51292305b6
commit
3523d31417
|
@ -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`
|
||||
|
|
|
@ -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`
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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`
|
||||
|
|
Loading…
Reference in New Issue
Block a user