[Buildroot] [PATCH 3 of 4 RFC] manual: add section about depending on toolchain options

Arnout Vandecappelle arnout at mind.be
Thu Sep 19 19:06:43 UTC 2013


On 19/09/13 06:10, Thomas Petazzoni wrote:
> Dear Arnout Vandecappelle,
>
> On Wed, 18 Sep 2013 23:57:41 +0200, Arnout Vandecappelle wrote:
>
>>> Yes, we probably want to have the choice between building static only,
>>> static + shared, or shared only, default to shared only. Currently,
>>> when !BR2_PREFER_STATIC_LIB, we build both the shared and static
>>> variants, which takes time because it requires building everything
>>> twice, once with -fPIC, once without.
>>
>>    I don't think the static + shared option really makes sense, does it?
>> The only use case I can think of is when you want a proprietary
>> executable to link statically in order to speed up start time.
>
> Well, there might be cases were you would want to link some of your
> applications statically, against some libraries, but not some others.
>
> I've had such a case with a customer project using Buildroot: they have
> limited flash space (16 MB, if I recall), in which they were trying to
> put many many things. Some shared libraries were used by only one
> executable, so linking them statically actually reduced the overall
> storage consumption.

  Hm, good use case. Yes, that does make a static+shared option valid.


  Regards,
  Arnout

>
> But I agree it shouldn't be the default.
>
> Thomas
>


-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F


More information about the buildroot mailing list