glibc: Install iconvconfig on target with gconv libs

Message ID
State New
Headers show
  • glibc: Install iconvconfig on target with gconv libs
Related show

Commit Message

Alexey Brodkin Aug. 2, 2018, 6:38 a.m.
In some cases we need to have gconv-modules.cache on target,
for example see [1] or glibc's test-suite (iconv/test-iconvconfig).

We do have iconvconfig installed in Buildroot's staging folder but
it gets never installed on targe because instead of calling glibc's
"install" target we simply copy a list of libs.

So then let's copy oven iconvconfig there as well in a similar manner.
Still we do it only if gconv libs are being copied otherwise it makes no
sense I guess.


Signed-off-by: Alexey Brodkin <>
Cc: Romain Naour <>
Cc: Baruch Siach <>

I do realize my implementation might look not super correct as
appending *binary* to the list of *libs* is not good. But:

1. It's very tiny yet working fix or even better "improvement"
2. That might at least be a good starting pont for a discussion on
   what would be a better way :)

 package/glibc/ | 4 ++++
 1 file changed, 4 insertions(+)


diff --git a/package/glibc/ b/package/glibc/
index 6d21ae7ac07d..9366b3ec4199 100644
--- a/package/glibc/
+++ b/package/glibc/
@@ -119,6 +119,10 @@  ifeq ($(BR2_PACKAGE_GDB),y)
+GLIBC_LIBS_LIB += iconvconfig
 	for libpattern in $(GLIBC_LIBS_LIB); do \
 		$(call copy_toolchain_lib_root,$$libpattern) ; \