From: Hauke Mehrtens Date: Sun, 11 Sep 2022 22:31:43 +0000 (+0200) Subject: toolchain: Include ./include/fortify for external musl toolchain X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=938ae926751672cfac8fe18a1ed6f20ec40b10e5;p=openwrt%2Fstaging%2Fstintel.git toolchain: Include ./include/fortify for external musl toolchain When building with an external toolcahin with musl also include ./include/fortify by default. This is also done when we build with the internal toolchain using musl libc. Without this extra include the fortify source feature is not working when using an external musl toolchain. All binaries were compiled without fortify source when an external musl toolchain was used. All binaries release done by the OpenWrt project use the internal toolcahin where fortify source is working. Signed-off-by: Hauke Mehrtens (cherry picked from commit b21ddbfa18cd1e437e31dc0fa29408721a186c2a) --- diff --git a/toolchain/Config.in b/toolchain/Config.in index 366f5c8b48..f02790ba52 100644 --- a/toolchain/Config.in +++ b/toolchain/Config.in @@ -169,6 +169,7 @@ menuconfig EXTERNAL_TOOLCHAIN string prompt "Toolchain include path" if DEVEL depends on EXTERNAL_TOOLCHAIN && !NATIVE_TOOLCHAIN + default "./usr/include ./include/fortify ./include" if EXTERNAL_TOOLCHAIN_LIBC_USE_MUSL default "./usr/include ./include" help Specify additional directories searched for header files (override