Compile with full SSP, RELRO and ASLR support by default

This commit is contained in:
Pierre Pronchery 2016-01-26 00:23:58 +01:00
parent f9576b0f88
commit 01b794abfa

View File

@ -1,9 +1,9 @@
targets=vncviewer
#cppflags=-DWITH_LIBVIEW
cflags_force=-W `pkg-config --cflags gtk-vnc-1.0`
cflags=-Wall -g -O2 -pedantic -fPIC -fstack-protector
cflags=-W -Wall -g -O2 -pedantic -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector-all
ldflags_force=`pkg-config --libs gtk-vnc-1.0`
ldflags=-Wl,-pie
ldflags=-Wl,-pie -Wl,-z,relro -Wl,-z,now
dist=Makefile,vncviewer.h
[vncviewer]