[oe-commits] [openembedded-core] 20/20: gcc-configure: Enable initfini-array

git at git.openembedded.org git at git.openembedded.org
Mon Sep 19 22:58:57 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 750e7af247900ec1abb1f8c8d9e3c461aa320c06
Author: Saul Wold <sgw at linux.intel.com>
AuthorDate: Mon Sep 19 10:16:00 2016 -0700

    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 <haitao.huang at intel.com>
    Signed-off-by: Saul Wold <sgw at linux.intel.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/recipes-devtools/gcc/gcc-configure-common.inc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/recipes-devtools/gcc/gcc-configure-common.inc b/meta/recipes-devtools/gcc/gcc-configure-common.inc
index f4f76bd..b374c30 100644
--- a/meta/recipes-devtools/gcc/gcc-configure-common.inc
+++ b/meta/recipes-devtools/gcc/gcc-configure-common.inc
@@ -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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list