build: Add _FORTIFY_SOURCE=3 support
authorHauke Mehrtens <[email protected]>
Sun, 5 Oct 2025 21:30:17 +0000 (23:30 +0200)
committerHauke Mehrtens <[email protected]>
Sat, 25 Oct 2025 23:43:01 +0000 (01:43 +0200)
commit93f86627c45a03c2c100e54f5ef006487af3e6e3
tree028a9671ef6a6c648bd4647989d0b4bb8f16451d
parent6268692bd2bf25a5105c074648f7c899624ecfd7
build: Add _FORTIFY_SOURCE=3 support

Add support for _FORTIFY_SOURCE level 3.

This is supported with glibc and with musl libc.

Link: https://github.com/openwrt/openwrt/pull/20313
Signed-off-by: Hauke Mehrtens <[email protected]>
config/Config-build.in
include/hardening.mk
toolchain/glibc/common.mk