From 27e8b280f9f9d514b029b21d3116cc845dc72bd1 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Sun, 6 May 2012 15:32:56 +0200 Subject: cc/gcc: add option to enable/disable libquadmath Signed-off-by: "Yann E. MORIN" diff --git a/config/cc/gcc.in.2 b/config/cc/gcc.in.2 index 807c6f9..585c00d 100644 --- a/config/cc/gcc.in.2 +++ b/config/cc/gcc.in.2 @@ -152,6 +152,17 @@ config CC_GCC_LIBSSP The default is 'N'. Say 'Y' if you need it, and report success/failure. +config CC_GCC_LIBQUADMATH + bool + prompt "Compile libquadmath" + depends on CC_GCC_HAS_LIBQUADMATH + help + libquadmath is a library which provides quad-precision mathematical + functions on targets supporting the __float128 datatype. See: + http://gcc.gnu.org/onlinedocs/libquadmath/ + + The default is 'N'. Say 'Y' if you need it, and report success/failure. + #----------------------------------------------------------------------------- comment "Misc. obscure options." diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh index 8dea3dc..d9930e2 100644 --- a/scripts/build/cc/gcc.sh +++ b/scripts/build/cc/gcc.sh @@ -621,6 +621,15 @@ do_cc_backend() { else extra_config+=(--disable-libssp) fi + if [ "${CT_CC_GCC_HAS_LIBQUADMATH}" = "y" ]; then + if [ "${CT_CC_GCC_LIBQUADMATH}" = "y" ]; then + extra_config+=(--enable-libquadmath) + extra_config+=(--enable-libquadmath-support) + else + extra_config+=(--disable-libquadmath) + extra_config+=(--disable-libquadmath-support) + fi + fi # *** WARNING ! *** # Keep this full if-else-if-elif-fi-fi block in sync -- cgit v0.10.2-6-g49f6