Signed-off-by: Alexey Neyman <stilor@att.net>
This commit is contained in:
Alexey Neyman 2017-02-18 18:41:04 -08:00
parent f0716643b4
commit 264b0c8686
3 changed files with 16 additions and 34 deletions

View File

@ -130,8 +130,6 @@ config CC_GCC_4_8
select CC_GCC_4_8_or_later select CC_GCC_4_8_or_later
select CC_GCC_USE_GMP_MPFR select CC_GCC_USE_GMP_MPFR
select CC_GCC_USE_MPC select CC_GCC_USE_MPC
select CC_GCC_HAS_LIBQUADMATH
select CC_GCC_HAS_LIBSANITIZER
select CC_SUPPORT_GOLANG select CC_SUPPORT_GOLANG
config CC_GCC_4_8_or_later config CC_GCC_4_8_or_later
@ -142,8 +140,6 @@ config CC_GCC_4_9
select CC_GCC_4_9_or_later select CC_GCC_4_9_or_later
select CC_GCC_USE_GMP_MPFR select CC_GCC_USE_GMP_MPFR
select CC_GCC_USE_MPC select CC_GCC_USE_MPC
select CC_GCC_HAS_LIBQUADMATH
select CC_GCC_HAS_LIBSANITIZER
select CC_SUPPORT_GOLANG select CC_SUPPORT_GOLANG
config CC_GCC_4_9_or_later config CC_GCC_4_9_or_later
@ -155,8 +151,6 @@ config CC_GCC_5
select CC_GCC_5_or_later select CC_GCC_5_or_later
select CC_GCC_USE_GMP_MPFR select CC_GCC_USE_GMP_MPFR
select CC_GCC_USE_MPC select CC_GCC_USE_MPC
select CC_GCC_HAS_LIBQUADMATH
select CC_GCC_HAS_LIBSANITIZER
select CC_GCC_HAS_LIBMPX select CC_GCC_HAS_LIBMPX
select CC_SUPPORT_GOLANG select CC_SUPPORT_GOLANG
@ -169,8 +163,6 @@ config CC_GCC_6
select CC_GCC_6_or_later select CC_GCC_6_or_later
select CC_GCC_USE_GMP_MPFR select CC_GCC_USE_GMP_MPFR
select CC_GCC_USE_MPC select CC_GCC_USE_MPC
select CC_GCC_HAS_LIBQUADMATH
select CC_GCC_HAS_LIBSANITIZER
select CC_GCC_HAS_LIBMPX select CC_GCC_HAS_LIBMPX
select CC_SUPPORT_GOLANG select CC_SUPPORT_GOLANG
@ -183,8 +175,6 @@ config CC_GCC_latest
select CC_GCC_6_or_later select CC_GCC_6_or_later
select CC_GCC_USE_GMP_MPFR select CC_GCC_USE_GMP_MPFR
select CC_GCC_USE_MPC select CC_GCC_USE_MPC
select CC_GCC_HAS_LIBQUADMATH
select CC_GCC_HAS_LIBSANITIZER
# Only enable gcc's support for plugins if binutils has it as well # Only enable gcc's support for plugins if binutils has it as well
# They are useful only when doing LTO, but it does no harm enabling # They are useful only when doing LTO, but it does no harm enabling

View File

@ -177,7 +177,6 @@ config CC_GCC_LIBSSP
config CC_GCC_LIBQUADMATH config CC_GCC_LIBQUADMATH
bool bool
prompt "Compile libquadmath" prompt "Compile libquadmath"
depends on CC_GCC_HAS_LIBQUADMATH
help help
libquadmath is a library which provides quad-precision mathematical libquadmath is a library which provides quad-precision mathematical
functions on targets supporting the __float128 datatype. See: functions on targets supporting the __float128 datatype. See:
@ -188,7 +187,6 @@ config CC_GCC_LIBQUADMATH
config CC_GCC_LIBSANITIZER config CC_GCC_LIBSANITIZER
bool bool
prompt "Compile libsanitizer" prompt "Compile libsanitizer"
depends on CC_GCC_HAS_LIBSANITIZER
depends on THREADS_NATIVE depends on THREADS_NATIVE
depends on ! LIBC_uClibc && ! LIBC_musl # Currently lacks required headers (like netrom.h) depends on ! LIBC_uClibc && ! LIBC_musl # Currently lacks required headers (like netrom.h)
help help

View File

@ -434,14 +434,12 @@ do_gcc_core_backend() {
else else
extra_config+=(--disable-libssp) extra_config+=(--disable-libssp)
fi fi
if [ "${CT_CC_GCC_HAS_LIBQUADMATH}" = "y" ]; then if [ "${CT_CC_GCC_LIBQUADMATH}" = "y" ]; then
if [ "${CT_CC_GCC_LIBQUADMATH}" = "y" ]; then extra_config+=(--enable-libquadmath)
extra_config+=(--enable-libquadmath) extra_config+=(--enable-libquadmath-support)
extra_config+=(--enable-libquadmath-support) else
else extra_config+=(--disable-libquadmath)
extra_config+=(--disable-libquadmath) extra_config+=(--disable-libquadmath-support)
extra_config+=(--disable-libquadmath-support)
fi
fi fi
core_LDFLAGS+=("${ldflags}") core_LDFLAGS+=("${ldflags}")
@ -928,22 +926,18 @@ do_gcc_backend() {
else else
extra_config+=(--disable-libssp) extra_config+=(--disable-libssp)
fi fi
if [ "${CT_CC_GCC_HAS_LIBQUADMATH}" = "y" ]; then if [ "${CT_CC_GCC_LIBQUADMATH}" = "y" ]; then
if [ "${CT_CC_GCC_LIBQUADMATH}" = "y" ]; then extra_config+=(--enable-libquadmath)
extra_config+=(--enable-libquadmath) extra_config+=(--enable-libquadmath-support)
extra_config+=(--enable-libquadmath-support) else
else extra_config+=(--disable-libquadmath)
extra_config+=(--disable-libquadmath) extra_config+=(--disable-libquadmath-support)
extra_config+=(--disable-libquadmath-support)
fi
fi fi
if [ "${CT_CC_GCC_HAS_LIBSANITIZER}" = "y" ]; then if [ "${CT_CC_GCC_LIBSANITIZER}" = "y" ]; then
if [ "${CT_CC_GCC_LIBSANITIZER}" = "y" ]; then extra_config+=(--enable-libsanitizer)
extra_config+=(--enable-libsanitizer) else
else extra_config+=(--disable-libsanitizer)
extra_config+=(--disable-libsanitizer)
fi
fi fi
if [ "${CT_CC_GCC_HAS_LIBMPX}" = "y" ]; then if [ "${CT_CC_GCC_HAS_LIBMPX}" = "y" ]; then