After did some trials and errors I found a way to build gettext library + its libintl.so library on musl. I need the library so cosmic-files will work properly. Before I finally built gettext + libintl.so, everytime I build gettext I only get libgnuintl.so instead of libintl.so. Turns out, the solution is pretty simple. I just need to rename libintl.h header file from musl build and boom, gettext build will produce libintl.so instead of libgnuintl.so.
- Musl (obviously).
- gettext, I use 0.24 version.
-
Download, extract the gettext source code and change to gettext directory !
$ wget -c https://ftp.gnu.org/gnu/gettext/gettext-0.24.tar.xz $ tar -xf gettext-0.24.tar.xz $ cd gettext-0.24
-
Rename libintl.h header file !
$ sudo mv /usr/include/libintl.h /usr/include/libintl.h.back
-
Build & install gettext !
$ ./configure --prefix=/usr --disable-static --enable-shared $ make $ sudo make install
-
Confirm if libintl.so is present !
$ ls -lh /usr/lib/libintl.so
- After build, there is an error when we build at-spi2-core. We need to add libintl linker using LDFLAGS="-lintl".