mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-04-14 14:36:36 +00:00
cc/gcc: add option to enable/disable libquadmath
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
This commit is contained in:
parent
b8425e99b9
commit
27e8b280f9
@ -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."
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user