toolchain: Include ./include/fortify for external musl toolchain
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 11 Sep 2022 22:31:43 +0000 (00:31 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 12 Sep 2022 21:34:10 +0000 (23:34 +0200)
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 <hauke@hauke-m.de>
toolchain/Config.in

index fb14006055582e051840c21ed0c07d1d4aa0ca86..6d3cc0a200cb7059b09a62135566b7d461266c57 100644 (file)
@@ -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