[OE-core] [PATCH] Qt 4.8 GCC 4.7 fixes

Ken Werner ken.werner at linaro.org
Fri Apr 27 16:19:21 UTC 2012


On 04/27/2012 02:53 PM, Eric Bénard wrote:
> Hi Ken,
>
> Le Fri, 27 Apr 2012 12:59:17 +0200,
> Ken Werner<ken.werner at linaro.org>  a écrit :
>
>> This change introduces two new patches to Qt 4.8. One prevents the build
>> system from using the -fuse-ld=gold GCC flag as this isn't upstream and
>> therefore not supported by many toolchains out there. The second patch
>
> ld-is-gold is a DISTRO_FEATURES wich enables gold (and thus reduce link
> time especially in qt's build) : has this patch an effect on the
> possibility to still use gold ?
>
> Eric

No, the patch doesn't prevent the toolchain from linking using gold. 
Upstream GCC+binutils supports either gold or the classic ld - a 
decision you make at the configure time of your toolchain. However, 
Debian and Ubuntu have patched their toolchains to allow the user to 
pick the desired linker using the -fuse-ld option. Technically what they 
do is a patch to the binutils which installs both the ld.bfd and ls.gold 
plus a symlink that selects the default linker. And a GCC patch that 
changes collect2 to support the -fuse-ld switch.

Regards,
Ken




More information about the Openembedded-core mailing list