Build with -fstack-protector and executables as PIE

This commit is contained in:
Pierre Pronchery 2015-07-12 18:17:36 +02:00
parent e9f3d12383
commit c4fcbf95b1
2 changed files with 4 additions and 4 deletions

View File

@ -1,9 +1,9 @@
targets=todo
#cppflags=-D EMBEDDED
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
ldflags=
ldflags=-Wl,-pie
dist=Makefile,priority.h,task.h,taskedit.h,todo.h,window.h
[todo]

View File

@ -1,6 +1,6 @@
targets=todo
cflags_force=-W -fPIC `pkg-config --cflags libDesktop Mailer`
cflags=-Wall -g -O2 -pedantic
cflags_force=-W `pkg-config --cflags libDesktop Mailer`
cflags=-Wall -g -O2 -pedantic -fPIC -fstack-protector
ldflags_force=`pkg-config --libs libDesktop`
dist=Makefile