From 2ee8d1d8f20212ee83692a45e9755c41c13cbe43 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Sat, 4 Jan 2014 16:17:40 +0100 Subject: cc/gcc: add option to enable/disable decimal floats Decimal floats need support form the C library, namely support for fenv, which is missing in uClibc for any architecture but x86/32. Add an option (a choice) to enable or disable decimal floats. Signed-off-by: "Yann E. MORIN" --- scripts/build/cc/gcc.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'scripts/build/cc') diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh index a443d84e..7f3415c9 100644 --- a/scripts/build/cc/gcc.sh +++ b/scripts/build/cc/gcc.sh @@ -333,6 +333,11 @@ do_cc_core_backend() { *) extra_config+=( "--with-linker-hash-style=${CT_CC_GCC_LNK_HASH_STYLE}" );; esac + case "${CT_CC_GCC_DEC_FLOATS}" in + "") ;; + *) extra_config+=( "--enable-decimal-float=${CT_CC_GCC_DEC_FLOATS}" );; + esac + case "${CT_ARCH}" in mips) case "${CT_CC_GCC_mips_llsc}" in @@ -784,6 +789,11 @@ do_cc_backend() { *) extra_config+=( "--with-linker-hash-style=${CT_CC_GCC_LNK_HASH_STYLE}" );; esac + case "${CT_CC_GCC_DEC_FLOATS}" in + "") ;; + *) extra_config+=( "--enable-decimal-float=${CT_CC_GCC_DEC_FLOATS}" );; + esac + if [ "${CT_CC_GCC_ENABLE_PLUGINS}" = "y" ]; then extra_config+=( --enable-plugin ) fi -- cgit v1.2.3