Originally posted by ahrs
View Post
Now lets say someone did fork systemd and made the code work with Musl/Glibc this might be able to compete for market share against systemd.
Originally posted by ahrs
View Post
Code:
#ifdef __GLIBC__
ahrs like it or not musl is not easy to support.
Yes musl upstream developers idea is that you build a test program then process the binary to find out what libc you are dealing with.
The problem here is not systemd alone its also musl. Yes if a ifdef could be done that was like this is not __GLIBC__ and this is __MUSL__ this would be one thing. For MUSL having to build a test binary do basically reversing on the binary to work out that you are dealing with __MUSL__ and what version MUSL you are dealing with is a major pain in the but.
Yes the fun point musl and klibc and many other non glibc libc items there is no standard defined item so you know what libc you are dealing with.
#ifndef __GLIBC__ is really not good enough.
Its always like support musl it is easy but the reality is this is not the case. This is also made worse with all the different musl build options.
Leave a comment: