flto automake

James Feist james.feist at linux.intel.com
Wed Dec 19 05:08:44 AEDT 2018

If you aren't planning on enabling flto in a repo you can ignore this email.

I've created a new class flto-automake 
if you are enabling -flto in an autotools project you might be 
interested in. When using static libraries you may run into undefined 
references when building with Yocto. Yocto by default uses:

export AR = "${HOST_PREFIX}ar"
export RANLIB = "${HOST_PREFIX}ranlib"

for AR and RANLIB. This new class replaces these with the gcc equivalent 
wrappers that can work with the flto object files. This doesn't seem to 
be an issue for the CI build, it only shows up for Yocto builds. 

For Cmake I suggest looking at the way bmcweb handles it in CMakesLists:



More information about the openbmc mailing list