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=
Add checks for powerpc64 and riscv64 since they won't work with LTO.
This is a bit crude on powerpc64 but can be improved upon later.
LTO does work on this platform using GCC but will fail using lld.
This commit also introduces LTO_DISABLE_CHECK which can be used to
override.
Reviewed by: pkubaj (private email)
Use corresponding toggles for each build framework to enable LTO
Reviewed by: pkubaj (maintainer)
Differential Revision: https://reviews.freebsd.org/D36696
Make the definition of WITH_ variable (end user actionable) a define
via a generic code
Move the WITH_DEBUG code into its own file Features/debug.mk
Replace USE_LTO into WITH_LTO and move it into Features/lto.mk
Move WITH_SSP into its own Features/ssp.mk
Add a variable to defined which one are activated by default (here SSP)
Reviewed by: portmgr (tcberner)
Differential Revision: https://reviews.freebsd.org/D35873