[Buildroot] [PATCH v2 2/9] dumb-init: new package

Yann E. MORIN yann.morin.1998 at free.fr
Thu Mar 1 22:23:42 UTC 2018


Thomas, Peter, All,

On 2018-03-01 23:04 +0100, Thomas Petazzoni spake thusly:
> On Thu, 01 Mar 2018 18:21:53 +0100, Peter Korsgaard wrote:
> >  >> dumb-init doesn't depend on any libraries, so the only issue is static
> >  >> linking with glibc, right?  

One can do a static link with glibc, as long as one does not do any name
resolution (username, hostname, etc...). But basically, static linking
with glibc has long been frowned upon...

> >  > No, you can also have musl or uclibc configured shared-only, which is
> >  > the case by default since BR2_SHARED_LIBS=y.  
> > 
> > Yes, but static linking against libc still works in that case, right?
> 
> I'm not sure you have libc.a with uClibc or musl if you build
> shared-only.

I did a quick build here, and indeed, uClibc-ng does still provide a
libc.a when doing a shared-only build. Same goes for musl.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'



More information about the buildroot mailing list