aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/glib-2.0/glib-2.0/uclibc_musl_translation.patch
blob: 7aa6217d6938c5b77db0d9db0cf1d3ef550865d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Fix DATADIRNAME on uclibc/Linux

translation files are always installed under PREFIX/share/locale in uclibc
based systems therefore lets set DATADIRNAME to "share".

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Upstream-Status: Pending
Index: glib-2.46.1/m4macros/glib-gettext.m4
===================================================================
--- glib-2.46.1.orig/m4macros/glib-gettext.m4
+++ glib-2.46.1/m4macros/glib-gettext.m4
@@ -243,6 +243,10 @@ msgstr ""
 	    CATOBJEXT=.mo
             DATADIRNAME=share
 	    ;;
+	    *-*-musl* | *-*-linux-uclibc*)
+	    CATOBJEXT=.gmo
+            DATADIRNAME=share
+	    ;;
 	    *)
 	    CATOBJEXT=.mo
             DATADIRNAME=lib