path: root/meta
diff options
authorSaul Wold <>2016-09-19 10:16:00 -0700
committerRichard Purdie <>2016-09-20 15:10:37 +0100
commit9f8a075ab46691534e2b22d0a363b3c847394215 (patch)
tree21bf279f5f879f01a7e2d8e76d2465652b47c676 /meta
parent2271f59a0f506f89f9fea6777701c4b40790ddd9 (diff)
gcc-configure: Enable initfini-array
This adds the correct support for initfini-array which replaces .init and .fini with .init-array and .fini-array. There is no appreciable size difference with this change. The change is needed since configure will not correctly detect support when building cross-compilers. Signed-off-by: Haitao Huang <> Signed-off-by: Saul Wold <> Signed-off-by: Ross Burton <>
Diffstat (limited to 'meta')
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/ b/meta/recipes-devtools/gcc/
index f4f76bda53..b374c30acb 100644
--- a/meta/recipes-devtools/gcc/
+++ b/meta/recipes-devtools/gcc/
@@ -44,6 +44,10 @@ EXTRA_OECONF = "\
${@get_gcc_multiarch_setting(bb, d)} \
+# Set this here since GCC configure won't auto-detect and enable
+# initfini-arry when cross compiling.
+EXTRA_OECONF_append = " --enable-initfini-array"
export gcc_cv_collect2_libs = 'none required'
# We need to set gcc_cv_collect2_libs else there is cross-compilation badness
# in the config.log files (which might not get generated until do_compile