LDBL_EQ_DBL is used by newlib to protect the definitions of the long
double math functions(e.g. cosl) as wrappers over long math
functions(e.g. cos). In this patch we define the symbol on ARM64 since
it was already defined under x86_64.
Signed-off-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@stud.acs.upb.ro>
Reviewed-by: Felipe Huici <felipe.huici@neclab.eu>
LIBNEWLIB_GLOBAL_FLAGS-$(CONFIG_LIBNEWLIBC_WANT_IO_C99_FORMATS) += -D_WANT_IO_C99_FORMATS
LIBNEWLIB_GLOBAL_FLAGS-$(CONFIG_LIBNEWLIBC_LINUX_ERRNO_EXTENSIONS) += -D__LINUX_ERRNO_EXTENSIONS__
ifeq ($(CONFIG_ARCH_ARM_64),y)
+LIBNEWLIB_GLOBAL_FLAGS-y += -D_LDBL_EQ_DBL
LIBNEWLIB_GLOBAL_FLAGS-y += -D_HAVE_LONG_DOUBLE
endif
ifeq ($(CONFIG_ARCH_X86_64),y)