[Buildroot] [PATCH 1/1] musl: Honor BR2_STATIC_LIBS / BR2_SHARED_LIBS

Yann E. MORIN yann.morin.1998 at free.fr
Sun Oct 18 18:52:45 UTC 2015


Thomas, Charles, All,

On 2015-10-18 18:33 +0200, Thomas Petazzoni spake thusly:
> Charles, Yann,
> 
> On Sun, 18 Oct 2015 16:18:10 +0000, Charles Duffy wrote:
> > I provided this patch because my build results were unnecessarily enlarged
> > by dynamic libraries on an otherwise static-only system.
> > 
> > It sounds to me like we could optionally disable only dynamic libraries;
> > leave static libraries always enabled; and end up in a place that works for
> > everyone.
> 
> Yeah, that's also my thought. In uClibc, you can enable/disable the
> shared library build, but not the static library build. So maybe we
> should do:
> 
> 	--enable-static \
> 	$(if $(BR2_STATIC_LIBS),--disable-shared,--enable-shared)
> 
> I.e, always static, and shared as soon as BR2_STATIC_LIBS is disabled.

Yes, I think this would be the best solution.

Charles, care to send the patch, please?

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