[yocto] [meta-mingw][PATCH 1/1] binutils-cross-canadian: Fix LTO failure

Khem Raj raj.khem at gmail.com
Thu Oct 20 10:40:42 PDT 2016


> On Oct 20, 2016, at 10:35 AM, Juro Bystricky <juro.bystricky at intel.com> wrote:
> 
> GCC was failing with a message similar to:
> 
> e:/windri~1/lx8.sdk/qemux8~1.800/sysroots/i686-w~1/usr/bin/i586-w~3/../../libexec/i586-wrs-linux/gcc/i586-wrs-linux/5.2.0/real-ld.exe: unrecognized option '-plugin'
> 
> The issue was that by default plugin support was disabled in binutils.  By
> enabling the plugin support, the LTO support should also now work properly.
> 
> Signed-off-by: Mark Hatle <mark.hatle at windriver.com>
> Signed-off-by: Juro Bystricky <juro.bystricky at intel.com>
> ---
> recipes-devtools/binutils/binutils-cross-canadian_2.2%.bbappend | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/recipes-devtools/binutils/binutils-cross-canadian_2.2%.bbappend b/recipes-devtools/binutils/binutils-cross-canadian_2.2%.bbappend
> index 026c932..5845fe0 100644
> --- a/recipes-devtools/binutils/binutils-cross-canadian_2.2%.bbappend
> +++ b/recipes-devtools/binutils/binutils-cross-canadian_2.2%.bbappend
> @@ -1,4 +1,4 @@
> -EXTRA_OECONF_append_sdkmingw32 = " --disable-plugins --disable-nls"
> +EXTRA_OECONF_append_sdkmingw32 = " --disable-nls”

This looks ok to me.

> LDFLAGS_append_sdkmingw32 = " -Wl,-static"
> 
> DEPENDS_remove_sdkmingw32 = "nativesdk-gettext"
> --
> 2.7.4
> 
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20161020/427213c0/attachment.pgp>


More information about the yocto mailing list