package/gcc: use BR2_USE_WCHAR to set gcc libquadmath option
authorSamuel Martin <s.martin49@gmail.com>
Mon, 27 Jun 2016 15:11:15 +0000 (16:11 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 1 Jul 2016 15:25:35 +0000 (17:25 +0200)
commit0a694c548dfed94239dc82cc6f4398ea24c32cc5
tree12e1d9df1a4b5d9217f5e9720f07c813a20c9a37
parente7fc2404f05256bc16f8b1d8bd9b06cae6fd72a0
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>
package/gcc/gcc.mk