>>>> Isn't this the same as compiling with CC="gcc -flto -fuse-linker-plugin.."?
>>>>
>>>> If so, maybe just this could be mentioned.
>>>>
>>> Nope, two completely different animals. gold is a new linker that was 
>>> introduced to binutils in 2008.
>>> LTO (Link-time Optimization) was a feature that was introduced to GCC 
>>> fairly recently...
>>>
>> Thanks for the clarification and links to further reading.
>>
>> Can you use ld-gold and lto together?
>>
>>
> Yes. And sorry, I meant to find this link include it in my previous email as 
> well.
> https://gcc.gnu.org/wiki/LinkTimeOptimization.
>
Thanks.

After compiling binutils with "--enable-gold --enable-plugins" (ld.gold fails 
without --enable-plugins) and gcc with "--enable-gold", the following seems to 
work fine:

CC="gcc -fuse-ld=gold -flto -fuse-linker-plugin.." configure ...

-- 
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to