package/libglib2: fix NLS build on musl and uclibc
authorYann E. MORIN <yann.morin.1998@free.fr>
Mon, 24 Jun 2019 20:25:49 +0000 (22:25 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Mon, 1 Jul 2019 08:00:27 +0000 (10:00 +0200)
commitc2e24f106058e63d7cb4404da0e7a6f209c162dc
treea83cbb78a7bbf0a30b2dea0d017d60605712da9f
parent74e574c8a651b79948ba5093f9f0faae098282ab
package/libglib2: fix NLS build on musl and uclibc

libglib2 uses a very crude and error-prone way to detect the intl
functions, which basically fails when the C library is not glibc.

There is a bug report about this in upstream meson [1], but it doesn't
seem to get any progress. Fixing that properly in Buildroot looks
complicated.

Now that a meson package can specify its LDFLAGS, use that to pass the
infrastructure-provided TARGET_NLS_LIBS to link with.

Fixes:
    http://autobuild.buildroot.org/results/f0d/f0d85d76786343d767fba9c7c5c01f042ecfc018/
    [...]

[1] https://github.com/mesonbuild/meson/issues/3740

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Adam Duskett <aduskett@gmail.com>
Cc: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/libglib2/libglib2.mk