Skip to contentSkip to conversation

package/uclibc: automatically enable uchar when wchar is enabled

PATCH In review Waldemar Brodkorb 2 participants 2 messages Aug 16

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/uclibc: automatically enable uchar when wchar is enabled

When wchar in uClibc is enabled, just enable uchar support, too. Adds 5kb to the C library on aarch64. Makes the default uClibc config more compatible to musl and glibc.

---
 package/uclibc/uclibc.mk | 2 ++
 1 file changed, 2 insertions(+)
package/uclibc/uclibc.mk +2 -0
index c19328e87a..beaa32e67f 100644
@@ -365,6 +365,7 @@ endif
 
 ifeq ($(BR2_TOOLCHAIN_BUILDROOT_WCHAR),y)
 UCLIBC_WCHAR_CONFIG = $(call KCONFIG_ENABLE_OPT,UCLIBC_HAS_WCHAR)
+UCLIBC_UCHAR_CONFIG = $(call KCONFIG_ENABLE_OPT,UCLIBC_HAS_UCHAR)
 else
 UCLIBC_WCHAR_CONFIG = $(call KCONFIG_DISABLE_OPT,UCLIBC_HAS_WCHAR)
 endif
@@ -431,6 +432,7 @@ define UCLIBC_KCONFIG_FIXUP_CMDS
 	$(UCLIBC_THREAD_DEBUG_CONFIG)
 	$(UCLIBC_LOCALE_CONFIG)
 	$(UCLIBC_WCHAR_CONFIG)
+	$(UCLIBC_UCHAR_CONFIG)
 	$(UCLIBC_SHARED_LIBS_CONFIG)
 endef
 
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot