Build with RELRO by default

This commit is contained in:
Pierre Pronchery 2015-10-28 22:32:36 +01:00
parent 37832c1ddc
commit 960b6bc136
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ subdirs=common
targets=download,surfer
#cppflags=-D EMBEDDED
cflags=-W -Wall -g -O2 -pedantic -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector-all
ldflags=-Wl,-pie
ldflags=-Wl,-pie -Wl,-z,relro -Wl,-z,now
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

@ -4,7 +4,7 @@ cppflags_force=-I ../src
cflags_force=`pkg-config --cflags libDesktop`
cflags=-W -Wall -g -O2 -pedantic -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector-all
ldflags_force=`pkg-config --libs libDesktop`
ldflags=-Wl,-pie
ldflags=-Wl,-pie -Wl,-z,relro -Wl,-z,now
dist=Makefile,backend/contents.c,backend/gtkdoc.c,backend/manual.c,backend/search.c,helper.h
[bookmark]