Build with SSP and PIE by default

This commit is contained in:
Pierre Pronchery 2015-08-27 01:22:53 +02:00
parent b5ede511bc
commit 8dd990ba30
2 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
targets=todo targets=todo
#cppflags=-D EMBEDDED #cppflags=-D EMBEDDED
cflags_force=-W `pkg-config --cflags libDesktop` cflags_force=`pkg-config --cflags libDesktop`
cflags=-Wall -g -O2 -pedantic -fPIC -fstack-protector cflags=-W -Wall -g -O2 -pedantic -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector-all
ldflags_force=`pkg-config --libs libDesktop` -lintl ldflags_force=`pkg-config --libs libDesktop` -lintl
ldflags=-Wl,-pie ldflags=-Wl,-pie
dist=Makefile,priority.h,task.h,taskedit.h,todo.h,window.h dist=Makefile,priority.h,task.h,taskedit.h,todo.h,window.h

View File

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