Build as PIE and with -fstack-protector
This commit is contained in:
parent
a769427e9b
commit
771bbf9fe5
|
@ -2,9 +2,9 @@ targets=pdfviewer
|
||||||
cppflags_force=-I $(PREFIX)/include
|
cppflags_force=-I $(PREFIX)/include
|
||||||
#cppflags=-D EMBEDDED
|
#cppflags=-D EMBEDDED
|
||||||
cflags_force=-W `pkg-config --cflags libDesktop poppler-glib`
|
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_force=`pkg-config --libs libDesktop poppler-glib` -lm
|
||||||
ldflags=
|
ldflags=-Wl,-pie
|
||||||
dist=Makefile,callbacks.h,pdfviewer.h
|
dist=Makefile,callbacks.h,pdfviewer.h
|
||||||
|
|
||||||
[pdfviewer]
|
[pdfviewer]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user