diff --git a/src/project.conf b/src/project.conf index bc69a53..8f17c0b 100644 --- a/src/project.conf +++ b/src/project.conf @@ -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] diff --git a/tools/project.conf b/tools/project.conf index 98bbf8f..ef77403 100644 --- a/tools/project.conf +++ b/tools/project.conf @@ -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]