Compile with full ASLR, RELRO and SSP by default

This commit is contained in:
Pierre Pronchery 2016-02-21 14:14:22 +01:00
parent 0d99d93e47
commit bde0861c4a

View File

@ -2,9 +2,9 @@ targets=pdfviewer
cppflags_force=-I $(PREFIX)/include
#cppflags=-D EMBEDDED
cflags_force=-W `pkg-config --cflags libDesktop poppler-glib`
cflags=-Wall -g -O2 -pedantic -fPIC -fstack-protector
cflags=-Wall -g -O2 -pedantic -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector-all
ldflags_force=`pkg-config --libs libDesktop poppler-glib` -lm
ldflags=-Wl,-pie
ldflags=-Wl,-pie -Wl,-z,relro -Wl,-z,now
dist=Makefile,callbacks.h,pdfviewer.h
[pdfviewer]