u/Ryan1729

Does a program working with musl imply that it will work with glibc?

I've been reading about the differences between musl and glibc. This musl page seems to be the main source of functional differences, as opposed to say, philosophical differences.

The sense I get from that page is that if a program works properly when linked against musl, then it will probably work when linked against glibc, since musl does things more "correctly", while glibc does some things "incorrectly" in a way that programs may rely on. Is that an accurate assessment, or is there a case where targeting musl would cause a program not to work with glibc?

If my assessment is accurate, then it seems like it would make sense for developers to target musl over glibc, for wider compatibility.

(Obviously one could write some code that had a compile error or bad behaviour specifically if glibc specific symbols are present, but I mean assuming one is generally trying to be compatible, but only testing against musl.)

reddit.com
u/Ryan1729 — 14 hours ago