diff --git a/src/project.conf b/src/project.conf index b05682f..d0a944b 100644 --- a/src/project.conf +++ b/src/project.conf @@ -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] diff --git a/tools/project.conf b/tools/project.conf index 86001c4..879be2e 100644 --- a/tools/project.conf +++ b/tools/project.conf @@ -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]