freebsd-ports/Mk/Features/relro.mk
Baptiste Daroussin cc0e861e23 hardening: add relro and bind_now features
As usual with features, this can be activated/deactivated via
WITH/WITHOUT_<feature>

Each port can individually mark itself as not supporting the feature
via <feature>_UNSAFE=
2022-10-26 10:34:03 +02:00

10 lines
188 B
Makefile

# RELRO Support
.if !defined(_RELRO_MK_INCLUDED)
_RELRO_MK_INCLUDED= yes
RELRO_Include_MAINTAINER= portmgr@FreeBSD.org
. if !defined(RELRO_UNSAFE)
LDFLAGS+= -Wl,-zrelro
. endif
.endif