Build strace(1) with security mitigations

This enables PIE with SSP, FORTIFY, and RELRO by default.
This commit is contained in:
Pierre Pronchery 2020-11-19 00:36:59 +01:00
parent 58c7511693
commit c2eece285d

View File

@ -1,6 +1,7 @@
targets=strace
cflags_force=-W
cflags=-Wall -g -O2 -pedantic
cflags=-Wall -g -O2 -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector
ldflags=-pie -Wl,-z,relro -Wl,-z,now
dist=Makefile,platform.h,platform/freebsd.h,platform/linux.h,platform/netbsd.h,strace.h
[strace]