[Buildroot] [PATCH 7/8] package/autotools: add --{enable, disable}-{shared, static} automatically

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Wed Jun 15 06:47:56 UTC 2011


Hello,

Le Wed, 15 Jun 2011 08:37:19 +0200,
Peter Korsgaard <jacmet at uclibc.org> a écrit :

>  Thomas> Ok. Thanks a lot for doing this testing!
> 
> Another more serious issue is that some non-library packages like bmon
> interprete --enable-static as link the binary statically, leading to
> bloat (E.G. ~900KB instead of ~100KB).

Is --enable-static supposed to have this semantic ? If not, then we
should fix the package. If yes, then we can fix those packages manually
by adding --disable-static to <pkg>_CONF_OPT, no ?

Or maybe this isn't worth the trouble after all, and we could just use
--disable-static by default. I'm not personally using static linking,
so adding the production of .a files was just done because it appeared
to be cost-free and could have been useful to some users. So I wouldn't
complain if we decide to revert back to --disable-static for target
packages.

Regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com



More information about the buildroot mailing list