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

Peter Korsgaard jacmet at uclibc.org
Wed Jun 15 07:09:52 UTC 2011


>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni at free-electrons.com> writes:

Hi,

 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).

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

I haven't been able to find an official specification of the
--enable-static semantic, but so far I've only noticed bmon having this
issue, so it might be local - It does kind of make sense though.

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

Ok. I'll test a bit more and see if I find other packages misbehaving as
well. If I don't then I'l just add the workaround for bmon.

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list