From 7de668a1deae7d187bf2f0c30ee82e2a92ab81f8 Mon Sep 17 00:00:00 2001 From: Samuel Martin Date: Sun, 3 Jul 2016 15:47:38 +0200 Subject: [PATCH] package/gcc: complete the logic on libquadmath libquadmath requires wchar. So, turn to positive logic and complete it to only enabling quadmath support when it is available. Cc: Thomas Petazzoni Signed-off-by: Samuel Martin Signed-off-by: Thomas Petazzoni --- package/gcc/gcc.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package/gcc/gcc.mk b/package/gcc/gcc.mk index b6a3ac9ad1..f324f9943b 100644 --- a/package/gcc/gcc.mk +++ b/package/gcc/gcc.mk @@ -115,7 +115,9 @@ HOST_GCC_COMMON_CONF_OPTS += --disable-libitm endif # quadmath support requires wchar -ifeq ($(BR2_USE_WCHAR),) +ifeq ($(BR2_USE_WCHAR)$(BR2_TOOLCHAIN_HAS_LIBQUADMATH),yy) +HOST_GCC_COMMON_CONF_OPTS += --enable-libquadmath +else HOST_GCC_COMMON_CONF_OPTS += --disable-libquadmath endif -- 2.30.2