[OE-core] Performance datapoint - impact of static libs
Richard Purdie
richard.purdie at linuxfoundation.org
Fri Jul 15 13:31:02 UTC 2011
Before:
real 104m1.135s
user 415m57.560s
sys 61m31.180s
With "--disable-static" being passed to configure (changes below):
real 99m46.645s
user 383m32.390s
sys 60m42.170s
So static libs add an extra ~30mins of processing (7%) and ~5 mins to
the overall build time. Not as much of a gain as I'd have liked but
interesting none the less.
The changes were effectively:
DISABLESTATIC = "--disable-static"
DISABLESTATIC_pn-sqlite3-native = ""
DISABLESTATIC_pn-openssl = ""
DISABLESTATIC_pn-openssl-native = ""
DISABLESTATIC_pn-qemu-native = ""
EXTRA_OECONF_append = " ${DISABLESTATIC}"
in local.conf with a patch to the openjade-native recipe to not install
the .a file using oe_libinstall and a patch to apmd to fix a libtool
related compiling bug in its makefile.
Cheers,
Richard
More information about the Openembedded-core
mailing list