summaryrefslogtreecommitdiff
path: root/scripts/build/cc/gcc.sh
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@free.fr>2014-01-04 15:17:40 (GMT)
committerYann E. MORIN" <yann.morin.1998@free.fr>2014-01-04 15:17:40 (GMT)
commit2ee8d1d8f20212ee83692a45e9755c41c13cbe43 (patch)
tree398ace1208208a3b9305315eb1427e7a200797d9 /scripts/build/cc/gcc.sh
parent92f8806b2df8621ce26e9caed5e55b58c4fee58c (diff)
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" <yann.morin.1998@free.fr>
Diffstat (limited to 'scripts/build/cc/gcc.sh')
-rw-r--r--scripts/build/cc/gcc.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh
index a443d84..7f3415c 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