| config BR2_PACKAGE_MUSL_ARCH_SUPPORTS |
| default y if BR2_microblaze |
| default y if BR2_mips64el |
| default y if BR2_powerpc64 |
| default y if BR2_powerpc64le |
| default y if BR2_RISCV_64 |
| depends on !BR2_powerpc_SPE # not supported, build breaks |
| depends on !(BR2_powerpc64 || BR2_powerpc64le) || BR2_POWERPC_CPU_HAS_ALTIVEC |
| # sh2 nommu is supported by musl, but we don't have support |
| config BR2_PACKAGE_MUSL_SUPPORTS |
| default y if BR2_PACKAGE_MUSL_ARCH_SUPPORTS |
| depends on BR2_TOOLCHAIN_USES_MUSL |
| select BR2_PACKAGE_LINUX_HEADERS |
| # SSP broken on i386/ppc: http://www.openwall.com/lists/musl/2016/12/04/2 |
| select BR2_TOOLCHAIN_HAS_SSP if BR2_PACKAGE_HOST_BINUTILS_SUPPORTS_CFI \ |
| && !(BR2_i386 || BR2_powerpc) |
| # Compatibility headers: cdefs.h, queue.h |
| select BR2_PACKAGE_MUSL_COMPAT_HEADERS |
| https://www.musl-libc.org/ |