[Buildroot] Question about Compilation Flags

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sat Nov 12 09:21:42 UTC 2016


Hello,

On Sat, 12 Nov 2016 13:06:11 +0530, Anand Sivaram wrote:

> Thank you very much for the reply.  I think BR2_TARGET_OPTIMIZATION and
> BR2_TARGET_LDFLAGS are
> better solutions than what I did in config/Makefile.in
> 
> I will try lighttpd.mk changes as you suggested.
> 
> These are the numbers I found without changing lighttpd in a special way.
> 
> du -ks output/target/ (default buildroot for mips without
> function/data/gc-section)
> 26188   output/target/
> du -ks output/target/ (with function/data/gc-sections)
> 25012   output/target/
> 
> That gives a saving of 1176 KB then.

That's not bad indeed, about 4.4% space saving.

Thanks for the feedback!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com


More information about the buildroot mailing list