freebsd-ports/Mk/Features/bind_now.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
201 B
Makefile

# BIND_NOW Support
.if !defined(_BIND_NOW_MK_INCLUDED)
_BIND_NOW_MK_INCLUDED= yes
BIND_NOW_Include_MAINTAINER= portmgr@FreeBSD.org
. if !defined(BIND_NOW_UNSAFE)
LDFLAGS+= -Wl,-znow
. endif
.endif