Build as PIE and with -fstack-protector

This commit is contained in:
Pierre Pronchery 2015-07-12 16:31:19 +02:00
parent a3d82209ba
commit fd8d7009ca
2 changed files with 5 additions and 4 deletions

View File

@ -2,8 +2,8 @@ subdirs=common
targets=download,surfer
#cppflags=-D EMBEDDED
cflags_force=-W
cflags=-Wall -g -O2 -pedantic
ldflags=
cflags=-Wall -g -O2 -pedantic -fPIC -fstack-protector
ldflags=-Wl,-pie
dist=Makefile,callbacks.h,common.h,download.h,ghtml.h,surfer.h,ghtml-gtkhtml.c,ghtml-gtkmozembed.c,ghtml-gtktextview.c,ghtml-webkit.c
[download]

View File

@ -2,8 +2,9 @@ targets=bookmark,helper,htmlapp
cppflags_force=-I ../src
#cppflags=-D EMBEDDED
cflags_force=-W `pkg-config --cflags libDesktop`
cflags=-Wall -g -O2 -pedantic
ldflags=`pkg-config --libs libDesktop`
cflags=-Wall -g -O2 -pedantic -fPIC -fstack-protector
ldflags_force=`pkg-config --libs libDesktop`
ldflags=-Wl,-pie
dist=Makefile
[bookmark]