build: disable kernel stack protector support for i386/x86_64
[openwrt/openwrt.git] / config / Config-build.in
index 4e2b0f5..f2d292e 100644 (file)
@@ -239,6 +239,7 @@ menu "Global build settings"
        choice
                prompt "Kernel space Stack-Smashing Protection"
                default KERNEL_CC_STACKPROTECTOR_REGULAR
+               depends on USE_MUSL || !(x86_64 || i386)
                help
                  Enable GCC Stack-Smashing Protection (SSP) for the kernel
                config KERNEL_CC_STACKPROTECTOR_NONE