diff --git a/src/project.conf b/src/project.conf index 046d5f5..1517d60 100644 --- a/src/project.conf +++ b/src/project.conf @@ -1,10 +1,11 @@ targets=camera cflags_force=-W `pkg-config --cflags libDesktop` -cflags=-Wall -g -O2 -pedantic +cflags=-Wall -g -O2 -pedantic -fPIC -fstack-protector ldflags_force=`pkg-config --libs libDesktop` -lintl #for Gtk+ 3 #cflags_force=-W `pkg-config --cflags libDesktop gtk+-x11-3.0` #ldflags_force=`pkg-config --libs libDesktop gtk+-x11-3.0` -lintl +ldflags=-Wl,-pie dist=Makefile,camera.h,overlay.h,window.h [camera] diff --git a/tools/project.conf b/tools/project.conf index f106ad2..48d79c6 100644 --- a/tools/project.conf +++ b/tools/project.conf @@ -1,10 +1,10 @@ targets=gallery cflags_force=-W `pkg-config --cflags gtk+-2.0` -cflags=-Wall -g -O2 -ldflags=`pkg-config --libs glib-2.0` +cflags=-Wall -g -O2 -pedantic -fPIC -fstack-protector +ldflags_force=`pkg-config --libs glib-2.0` #for Gtk+ 3 #cflags_force=-W `pkg-config --cflags gtk+-3.0` -#ldflags=`pkg-config --libs glib-3.0` +ldflags=-Wl,-pie dist=Makefile [gallery]