Open Kiwifuit opened 2 months ago
To build statically linked with meson I recommend to always use all of these options: -Dc_link_args=-static -Ddefault_library=static -Dprefer_static=true
.
Also meson will silently use dynamically linked libraries when it can't find statically linked ones. So check that all the *.a
files are there.
Just started making my own linux from scratch and I cant seem to build a static binary for it
I have set the following options:
but when i do
file initramfs/sbin/openrc
i get a dynamically compiled binary:Is it possible to create a comprehensive guide on how to build openrc statically?