mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 05:29:32 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
a8cf594bce
commit
1fe48d03f8
@@ -44,6 +44,10 @@ EXTRA_OECONF = "\
|
|||||||
${@get_gcc_multiarch_setting(bb, d)} \
|
${@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'
|
export gcc_cv_collect2_libs = 'none required'
|
||||||
# We need to set gcc_cv_collect2_libs else there is cross-compilation badness
|
# 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
|
# in the config.log files (which might not get generated until do_compile
|
||||||
|
|||||||
Reference in New Issue
Block a user