by Wowfunhappy · 5y ago · 0 comments
If you're on Linux, musl libc and musl-tools are useful for dealing with this reliably.
This is functionally impossible on $ISA-linux-gnu, because the glibc developers refuse to provide a working C standard library (libc.a).
> musl libc and musl-tools are useful
Sure, but if the software worked (/reliably) with musl, we'd be using that already.
It's cool that they use run-time dynamic loading to "modularize" certain features (such as image loading), but it seriously damages the benefits of static linkage.
Example executable:
https://github.com/nh2/static-haskell-nix/releases/tag/c-sta...
It lost this ability temporarily when switching to Meson, but I fixed it in GTK3 and GTK4. But I just checked and apparently it is broken again:
https://gitlab.gnome.org/GNOME/gtk/-/issues/3774#note_109746...
Did GTK3 or GTK4 ever become relocatable on Linux?
https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/3519#not...