Build as PIE and with -fstack-protector

This commit is contained in:
Pierre Pronchery 2015-07-12 21:56:38 +02:00
parent a769427e9b
commit 771bbf9fe5

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
cflags=-Wall -g -O2 -pedantic -fPIC -fstack-protector
ldflags_force=`pkg-config --libs libDesktop poppler-glib` -lm
ldflags=
ldflags=-Wl,-pie
dist=Makefile,callbacks.h,pdfviewer.h
[pdfviewer]