diff options
author | Khem Raj <raj.khem@gmail.com> | 2016-05-11 10:35:31 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-13 13:41:30 +0100 |
commit | fb6ee2225b32a236dee74b74b62d94e57e82dc4f (patch) | |
tree | d76eed1c138e60e32e681165f3542ffe4e83f2d0 /meta/recipes-devtools/gcc/gcc-common.inc | |
parent | e260dc35b77e7884e8b0d1ea874a58304cdc0a22 (diff) | |
download | poky-fb6ee2225b32a236dee74b74b62d94e57e82dc4f.tar.gz |
libgcc: Ensure that gcc configure options are passed to libgcc too
libgcc uses certain options from EXTRA_OECONF as well, curently we are
ignoring them, as a result we do not configure libgcc to match cross gcc
in some cases e.g. ppc/musl should have used 64bit long doubles but
it went for 128-ldbls which is default, works on glibc but not on musl
(From OE-Core rev: d774bb2d10f2c05900f87dcc53f073433ca02121)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-common.inc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-common.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-common.inc b/meta/recipes-devtools/gcc/gcc-common.inc index e4fd4d6f70..f540b4d965 100644 --- a/meta/recipes-devtools/gcc/gcc-common.inc +++ b/meta/recipes-devtools/gcc/gcc-common.inc | |||
@@ -33,6 +33,8 @@ def get_gcc_ppc_plt_settings(bb, d): | |||
33 | def get_long_double_setting(bb, d): | 33 | def get_long_double_setting(bb, d): |
34 | if d.getVar('TRANSLATED_TARGET_ARCH', True) in [ 'powerpc', 'powerpc64' ] and d.getVar('TCLIBC', True) in [ 'uclibc', 'glibc' ]: | 34 | if d.getVar('TRANSLATED_TARGET_ARCH', True) in [ 'powerpc', 'powerpc64' ] and d.getVar('TCLIBC', True) in [ 'uclibc', 'glibc' ]: |
35 | return "--with-long-double-128" | 35 | return "--with-long-double-128" |
36 | else: | ||
37 | return "--without-long-double-128" | ||
36 | return "" | 38 | return "" |
37 | 39 | ||
38 | def get_gcc_multiarch_setting(bb, d): | 40 | def get_gcc_multiarch_setting(bb, d): |