Build as PIE and with -fstack-protector

This commit is contained in:
Pierre Pronchery 2015-07-12 21:14:09 +02:00
parent 9e32448a31
commit 4940b47fd1
2 changed files with 4 additions and 4 deletions

View File

@ -1,9 +1,9 @@
targets=editor
#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` -lm -lintl
ldflags=
ldflags=-Wl,-pie
dist=Makefile,callbacks.h,editor.h,filter.h
[editor]

View File

@ -1,8 +1,8 @@
targets=filter
cflags_force=-W `pkg-config --cflags libSystem`
cflags=-Wall -g -O2 -pedantic
cflags=-Wall -g -O2 -pedantic -fPIC -fstack-protector
ldflags_force=`pkg-config --libs libSystem` -lintl
ldflags=
ldflags=-Wl,-pie
dist=Makefile
[filter]