[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Support for musl

From: Henri
Subject: Re: Support for musl
Date: Fri, 26 Jan 2018 11:28:31 +1300

On Thu, 2018-01-25 at 19:29 +1100, Ben Elliston wrote:
> On Thu, Jan 25, 2018 at 05:35:10PM +1300, Henri wrote:
> > 
> > > 
> > > Another option to determine the libc version would be to parse the
> > > output of "ldd --version".
> It's fine to assume the presence of ldd(1) since you know you are on a
> Linux system. Within each case in the big case statement, you don't
> need to rely on univerally available shell utilities.
> How about just running ldd --version | grep -q ^musl ?

Sounds good to me.  A new patch is attached.  I had to pipe stderr to stdout
though because musl ldd writes version info to stderr.

> If that pipeline returns 0, you have your answer.
> Ben

Attachment: musl.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]