Build as PIE

This commit is contained in:
Pierre Pronchery 2015-07-11 15:40:55 +02:00
parent 59a0f6d8a6
commit cb58713187
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +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 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_force=-W
cflags=-Wall -g -O2 -pedantic -fstack-protector cflags=-Wall -g -O2 -pedantic -fPIC -fstack-protector
ldflags=-Wl,-pie
dist=Makefile,common.c dist=Makefile,common.c
[basename] [basename]

View File

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