[oe] [PATCH] Add --disable-decimal-float option to gcc-cross-intermediate/gcc-cross_4.4.2.bb
Khem Raj
raj.khem at gmail.com
Mon Jan 4 23:14:53 UTC 2010
On (02/01/10 15:33), Guo Hongruan wrote:
> 1. Add --disable-decimal-float option to gcc-cross-intermediate_4.4.2.bb when LIBC == uclibc and TARGET_ARCH == i[3|4|5|6]86, without it, the compilation will failed due to lack of fenv.h.
> ---
> recipes/gcc/gcc-cross-intermediate_4.4.2.bb | 7 +++++++
> recipes/gcc/gcc-cross_4.4.2.bb | 7 ++++++-
> 2 files changed, 13 insertions(+), 1 deletions(-)
>
> diff --git a/recipes/gcc/gcc-cross-intermediate_4.4.2.bb b/recipes/gcc/gcc-cross-intermediate_4.4.2.bb
> index 3ca59aa..4bb1004 100644
> --- a/recipes/gcc/gcc-cross-intermediate_4.4.2.bb
> +++ b/recipes/gcc/gcc-cross-intermediate_4.4.2.bb
> @@ -1,9 +1,16 @@
> require gcc-cross_${PV}.bb
> require gcc-cross-intermediate.inc
>
> +PR = "${INC_PR}.2"
> +
> DEPENDS += "gmp-native mpfr-native"
>
> EXTRA_OECONF += " --disable-libmudflap \
> --disable-libgomp \
> --disable-libssp \
> "
> +
> +EXTRA_OECONF_append_linux-uclibc += " ${@base_contains('TARGET_ARCH', 'i386', '--disable-decimal-float', '',d)}"
> +EXTRA_OECONF_append_linux-uclibc += " ${@base_contains('TARGET_ARCH', 'i486', '--disable-decimal-float', '',d)}"
> +EXTRA_OECONF_append_linux-uclibc += " ${@base_contains('TARGET_ARCH', 'i586', '--disable-decimal-float', '',d)}"
> +EXTRA_OECONF_append_linux-uclibc += " ${@base_contains('TARGET_ARCH', 'i686', '--disable-decimal-float', '',d)}"
It should be disabled for all uclibc based arch/distro combo's
and the change should go to gcc-<version>.inc files as in my original
patch.
More information about the Openembedded-devel
mailing list