[yocto] [meta-mingw][PATCH 2/3] gcc-crosssdk_%.bbappend: Do not configure with initfini-array enabled.

Khem Raj raj.khem at gmail.com
Wed Oct 5 16:49:35 PDT 2016


> On Oct 5, 2016, at 3:49 PM, Juro Bystricky <juro.bystricky at intel.com> wrote:
> 
> Default configuration for gcc-crosssddk is now to enable initfini-array.
> However, this works only for Linux so we disable it for mingw32.
> Otherwise we will eventually encounter build error such as:
> 
> multiple definition of `__do_global_dtors'
> 
> Signed-off-by: Juro Bystricky <juro.bystricky at intel.com>
> ---
> recipes-devtools/gcc/gcc-crosssdk_%.bbappend | 3 +++
> 1 file changed, 3 insertions(+)
> 
> diff --git a/recipes-devtools/gcc/gcc-crosssdk_%.bbappend b/recipes-devtools/gcc/gcc-crosssdk_%.bbappend
> index 77ba57f..b3b843a 100644
> --- a/recipes-devtools/gcc/gcc-crosssdk_%.bbappend
> +++ b/recipes-devtools/gcc/gcc-crosssdk_%.bbappend
> @@ -1 +1,4 @@
> EXTRA_OECONF_mingw32 := "${@oe_filter_out('--with-linker-hash-style=${LINKER_HASH_STYLE}', '${EXTRA_OECONF}', d)}"
> +PACKAGECONFIG_CONFARGS ?= ""
> +EXTRA_OECONF_remove_mingw32 = "--enable-initfini-array"
> +EXTRA_OECONF_append_mingw32 = " --disable-initfini-array”

I think in OE-Core we should add this via PACKAGECONFIG

> --
> 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/20161005/b9a5ad3b/attachment.pgp>


More information about the yocto mailing list