diff options
| author | Saul Wold <sgw@linux.intel.com> | 2016-09-19 10:16:00 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-20 15:11:09 +0100 |
| commit | 1fe48d03f8fe2834c464ab29d64abefc4ecf4e43 (patch) | |
| tree | 7d38801f025248d5ad9b81aaeffb827785a9b2bd | |
| parent | a8cf594bcedd9bb9a4386143e22de6a8127147f4 (diff) | |
| download | poky-1fe48d03f8fe2834c464ab29d64abefc4ecf4e43.tar.gz | |
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.
(From OE-Core rev: 9f8a075ab46691534e2b22d0a363b3c847394215)
Signed-off-by: Haitao Huang <haitao.huang@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-devtools/gcc/gcc-configure-common.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-configure-common.inc b/meta/recipes-devtools/gcc/gcc-configure-common.inc index f4f76bda53..b374c30acb 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 = "\ | |||
| 44 | ${@get_gcc_multiarch_setting(bb, d)} \ | 44 | ${@get_gcc_multiarch_setting(bb, d)} \ |
| 45 | " | 45 | " |
| 46 | 46 | ||
| 47 | # Set this here since GCC configure won't auto-detect and enable | ||
| 48 | # initfini-arry when cross compiling. | ||
| 49 | EXTRA_OECONF_append = " --enable-initfini-array" | ||
| 50 | |||
| 47 | export gcc_cv_collect2_libs = 'none required' | 51 | export gcc_cv_collect2_libs = 'none required' |
| 48 | # We need to set gcc_cv_collect2_libs else there is cross-compilation badness | 52 | # We need to set gcc_cv_collect2_libs else there is cross-compilation badness |
| 49 | # in the config.log files (which might not get generated until do_compile | 53 | # in the config.log files (which might not get generated until do_compile |
