Build with RELRO, and full SSP and ASLR support

This commit is contained in:
Pierre Pronchery 2016-01-22 03:11:40 +01:00
parent 89da2a7fbb
commit 54d9018ce1
2 changed files with 6 additions and 6 deletions

View File

@ -1,9 +1,9 @@
targets=editor
#cppflags=-D EMBEDDED
cflags_force=-W `pkg-config --cflags libDesktop`
cflags=-Wall -g -O2 -pedantic -fPIC -fstack-protector
cflags_force=`pkg-config --cflags libDesktop`
cflags=-W -Wall -g -O2 -pedantic -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector-all
ldflags_force=`pkg-config --libs libDesktop` -lm -lintl
ldflags=-Wl,-pie
ldflags=-Wl,-pie -Wl,-z,relro -Wl,-z,now
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 -fPIC -fstack-protector
cflags_force=`pkg-config --cflags libSystem`
cflags=-W -Wall -g -O2 -pedantic -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector-all
ldflags_force=`pkg-config --libs libSystem` -lintl
ldflags=-Wl,-pie
ldflags=-Wl,-pie -Wl,-z,relro -Wl,-z,now
dist=Makefile
[filter]