Author: Vignesh R <vignesh.r@timesys.com>
Date: Tue, 10 Nov 2020 14:52:59 +0530

uclibc do not have frexpl function
with the referenece of below commit, implemented printf for uclibc too
https://github.com/GNOME/glib/commit/77f9b0b9d5fb2b64941dc524032325c20d456a17

---
 meson.build       | 8 ++++++++
 meson_options.txt | 5 +++++
 2 files changed, 13 insertions(+)

diff --git a/meson.build b/meson.build
index 19efbd3..ff00c1f 100644
--- a/meson.build
+++ b/meson.build
@@ -1074,6 +1074,14 @@ if host_system == 'windows' and (cc.get_id() == 'msvc' or cc.get_id() == 'clang-
   glib_conf.set('HAVE_C99_SNPRINTF', false)
   glib_conf.set('HAVE_C99_VSNPRINTF', false)
   glib_conf.set('HAVE_UNIX98_PRINTF', false)
+elif get_option('uclibc')
+  #uclibc dont have frexpl function in it, glib use frexpl for to implement printf
+  glib_conf.set('HAVE_C99_SNPRINTF', true)
+  glib_conf.set('HAVE_C99_VSNPRINTF', true)
+  glib_conf.set('HAVE_UNIX98_PRINTF', true)
+  have_good_vsnprintf = true
+  have_good_snprintf = true
+  have_good_printf = true
 elif not cc_can_run and host_system in ['ios', 'darwin']
   # All these are true when compiling natively on macOS, so we should use good
   # defaults when building for iOS and tvOS.
diff --git a/meson.options b/meson.options
index 37dc991..6bbffbe 100644
--- a/meson.options
+++ b/meson.options
@@ -4,6 +4,11 @@ option('runtime_libdir',
        description : 'install runtime libraries relative to libdir',
        deprecated: true)
 
+option('uclibc',
+       type : 'boolean',
+       value : false,
+       description : 'for the frexpl function')
+
 option('charsetalias_dir',
        type : 'string',
        value : '',
-- 
2.25.1

