Build with SSP and RELRO by default

This commit is contained in:
Pierre Pronchery 2015-09-04 21:52:50 +02:00
parent cb58713187
commit 239fc9e9df
2 changed files with 5 additions and 6 deletions

View File

@ -1,7 +1,7 @@
targets=basename,cat,chgrp,chmod,chown,cksum,cmp,cp,date,df,dirname,du,echo,false,file,find,head,id,kill,link,ln,locale,logname,ls,mkdir,mkfifo,more,mv,nice,pr,printf,ps,pwd,renice,rm,rmdir,sleep,strings,tail,test,time,touch,true,tty,uname,uniq,unlink,wc,who
cflags_force=-W
cflags=-Wall -g -O2 -pedantic -fPIC -fstack-protector
ldflags=-Wl,-pie
cflags_force=
cflags=-W -Wall -g -O2 -pedantic -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector-all
ldflags=-Wl,-pie -Wl,-z,relro -Wl,-z,now
dist=Makefile,common.c
[basename]

View File

@ -1,7 +1,6 @@
targets=utilbox
cflags_force=-W
cflags=-Wall -g -O2 -pedantic -fPIC -fstack-protector
ldflags=-Wl,-pie
cflags=-W -Wall -g -O2 -pedantic -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector-all
ldflags=-Wl,-pie -Wl,-z,relro -Wl,-z,now
dist=Makefile,graph.sh,utils.sh,utilbox.h
[utilbox]