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

Juro Bystricky juro.bystricky at intel.com
Wed Oct 5 15:49:19 PDT 2016


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"
-- 
2.7.4




More information about the yocto mailing list