diff options
author | Khem Raj <raj.khem@gmail.com> | 2014-08-14 14:05:57 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-15 18:19:52 +0100 |
commit | e7011429e40ae96b9c9f1e7f3c6f4c1f1102607f (patch) | |
tree | c4fff90c3b095440eaf935d714f1ba7a7f0ccf9e /meta/recipes-devtools/gcc/gcc-common.inc | |
parent | c17d883fa99b6967d83c3796d22fc0c1dbe704e6 (diff) | |
download | openembedded-core-e7011429e40ae96b9c9f1e7f3c6f4c1f1102607f.tar.gz openembedded-core-e7011429e40ae96b9c9f1e7f3c6f4c1f1102607f.tar.bz2 openembedded-core-e7011429e40ae96b9c9f1e7f3c6f4c1f1102607f.zip |
gcc: Abstract long double configuration into python function
musl does not support IBM 128 long double for ppc, instead of
doing complex overrides move it into a pythong snippet which
is easier to read and more compact.
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 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-common.inc b/meta/recipes-devtools/gcc/gcc-common.inc index 4c55542280..497d06ae8b 100644 --- a/meta/recipes-devtools/gcc/gcc-common.inc +++ b/meta/recipes-devtools/gcc/gcc-common.inc @@ -25,6 +25,11 @@ def get_gcc_mips_plt_setting(bb, d): return "--with-mips-plt" return "" +def get_long_double_setting(bb, d): + if d.getVar('TRANSLATED_TARGET_ARCH', True) in [ 'powerpc', 'powerpc64' ] and d.getVar('TCLIBC', True) in [ 'uclibc', 'eglibc' ]: + return "--with-long-double-128" + return "" + def get_gcc_multiarch_setting(bb, d): target_arch = d.getVar('TRANSLATED_TARGET_ARCH', True) multiarch_options = { |