Commit dda1b34d authored by Loic's avatar Loic
Browse files

HBSD: add a new method to activate safestack on ports



This adds a new way to enable safestack by listing compatible
ports in a file that is stored in hardenedbsd/ports_with_safestack.

This is an initial version, the final idea being to no longer need
to use 'USE_HARDENING' in the Makefiles of the many ports in order
to reduce our maintenance burden due to the merge conflict.
Signed-off-by: Loic's avatarLoic <loic.f@hardenedbsd.org>
parent 985587d2
......@@ -226,6 +226,16 @@ safestack_ARGS?=
safestack_ARGS+= off
.endif
_SAFESTACK_COMPATIBLE_PORTS!= ${CAT} ${PORTSDIR}/hardenedbsd/ports_with_safestack
.if defined(PKGORIGIN) && ${ARCH} == "amd64"
. for safestackport in ${_SAFESTACK_COMPATIBLE_PORTS}
. if ${PKGORIGIN} == ${safestackport}
USE_HARDENING:= safestack
. endif
. endfor
.endif
SAFESTACK_DESC= Build with SafeStack
SAFESTACK_USES= safestack
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment