diff options
author | Samuel Martin <s.martin49@gmail.com> | 2016-06-27 16:11:15 +0100 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2016-07-01 17:25:35 +0200 |
commit | 0a694c548dfed94239dc82cc6f4398ea24c32cc5 (patch) | |
tree | 12e1d9df1a4b5d9217f5e9720f07c813a20c9a37 /package/gcc | |
parent | e7fc2404f05256bc16f8b1d8bd9b06cae6fd72a0 (diff) | |
download | buildroot-0a694c548dfed94239dc82cc6f4398ea24c32cc5.tar.gz buildroot-0a694c548dfed94239dc82cc6f4398ea24c32cc5.zip |
package/gcc: use BR2_USE_WCHAR to set gcc libquadmath option
BR2_TOOLCHAIN_BUILDROOT_WCHAR is only defined when uclibc is selected,
whereas BR2_USE_WCHAR is always defined. Due to this, we were disabling
quadmath support even with glibc or musl.
So, use BR2_USE_WCHAR to drive the gcc libquadmath option.
In addition, invert the logic of the condition to use positive logic,
and rework the comment to no longer mention gcc 4.6: libquadmath still
exists, and it still requires wchar support.
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/gcc')
-rw-r--r-- | package/gcc/gcc.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/gcc/gcc.mk b/package/gcc/gcc.mk index 46f05ff2db..6e1c02de93 100644 --- a/package/gcc/gcc.mk +++ b/package/gcc/gcc.mk @@ -106,8 +106,8 @@ ifeq ($(BR2_sparc_v8)$(BR2_sparc_leon3),y) HOST_GCC_COMMON_CONF_OPTS += --disable-libitm endif -# gcc 4.6.x quadmath requires wchar -ifneq ($(BR2_TOOLCHAIN_BUILDROOT_WCHAR),y) +# quadmath support requires wchar +ifeq ($(BR2_USE_WCHAR),) HOST_GCC_COMMON_CONF_OPTS += --disable-libquadmath endif |