Build with full SSP, RELRO and as PIE by default

This commit is contained in:
Pierre Pronchery 2015-11-23 00:10:59 +01:00
parent 8f0ba38e9f
commit c452dd539f

View File

@ -1,9 +1,9 @@
targets=xmleditor
#cppflags=-D EMBEDDED
cflags_force=-W `pkg-config --cflags libParser libDesktop`
cflags=-Wall -g -O2 -pedantic -fPIC -fstack-protector
cflags_force=`pkg-config --cflags libParser libDesktop`
cflags=-W -Wall -g -O2 -pedantic -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector-all
ldflags_force=`pkg-config --libs libParser libDesktop` -lintl
ldflags=-Wl,-pie
ldflags=-Wl,-pie -Wl,-z,relro -Wl,-z,now
dist=Makefile,callbacks.h,xmleditor.h
[xmleditor]