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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Makefile b/Makefile | |
index 3358bae..9652529 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -21,7 +21,8 @@ dwl: dwl.o util.o | |
$(CC) dwl.o util.o $(DWLCFLAGS) $(LDFLAGS) $(LDLIBS) -o $@ | |
dwl.o: dwl.c client.h config.h config.mk cursor-shape-v1-protocol.h \ | |
pointer-constraints-unstable-v1-protocol.h wlr-layer-shell-unstable-v1-protocol.h \ | |
- wlr-output-power-management-unstable-v1-protocol.h xdg-shell-protocol.h | |
+ wlr-output-power-management-unstable-v1-protocol.h xdg-shell-protocol.h \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
backtrace: | |
#0 0x00007ffff297ad95 in pixman_transform_point_3d () from /usr/lib/libpixman-1.so.0 | |
No symbol table info available. | |
#1 0x00007ffff297d1d8 in radial_get_scanline_narrow () from /usr/lib/libpixman-1.so.0 | |
No symbol table info available. | |
#2 0x00007ffff2976b74 in general_composite_rect () from /usr/lib/libpixman-1.so.0 | |
No symbol table info available. | |
#3 0x00007ffff28d5a52 in pixman_image_composite32 () from /usr/lib/libpixman-1.so.0 | |
No symbol table info available. | |
#4 0x00007ffff67c6f31 in _inplace_spans (abstract_renderer=0x7fffecc36430, y=3, h=1, spans=0x7fffecc34a28, num_spans=1) at ../src/cairo-image-compositor.c:2547 |
We need some stuffs to be prepared, like :
- Musl-based linux distro as host. I used dragora GNU/Linux. We may use alpine as well.
- Compiler, I use gcc 14.
- LFS book, just ignore everything about the glibc, openssl and eudev part.
- Mussel to build cross compilers.
- Time and patient.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Default config for sway | |
# | |
# Copy this to ~/.config/sway/config and edit it to your liking. | |
# | |
# Read `man 5 sway` for a complete reference. | |
### Variables | |
# | |
# Logo key. Use Mod1 for Alt. | |
set $mod Mod4 |
NewerOlder