diff --git a/Config.in b/Config.in index f0cd6f48ed..52c3c4b4c8 100644 --- a/Config.in +++ b/Config.in @@ -601,6 +601,8 @@ choice config BR2_STATIC_LIBS bool "static only" + depends on !BR2_TOOLCHAIN_BUILDROOT || \ + BR2_TOOLCHAIN_BUILDROOT_STATIC_LIBS_SUPPORTS help Build and use only static libraries. No shared libraries will be installed on the target. This potentially increases your diff --git a/toolchain/toolchain-buildroot/Config.in b/toolchain/toolchain-buildroot/Config.in index 0dac816a4d..11566c27ff 100644 --- a/toolchain/toolchain-buildroot/Config.in +++ b/toolchain/toolchain-buildroot/Config.in @@ -20,6 +20,11 @@ config BR2_TOOLCHAIN_BUILDROOT_VENDOR If you're not sure, just leave the default "buildroot" value. +config BR2_TOOLCHAIN_BUILDROOT_STATIC_LIBS_SUPPORTS + bool + default y if BR2_PACKAGE_UCLIBC_SUPPORTS + default y if BR2_PACKAGE_MUSL_SUPPORTS + choice prompt "C library" default BR2_TOOLCHAIN_BUILDROOT_UCLIBC