Build with -fstack-protector and as PIE

This commit is contained in:
Pierre Pronchery 2015-07-12 18:24:46 +02:00
parent 866f6c9ac7
commit f1959b21f6
2 changed files with 5 additions and 4 deletions

View File

@ -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]

View File

@ -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]