From: Vlad-Andrei BĂDOIU (78692) Date: Wed, 15 Jan 2020 12:34:24 +0000 (+0000) Subject: Define LDBL_EQ_DBL on ARM64 X-Git-Tag: RELEASE-0.4~3 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=793728f8d3bbdeadda1cf7cfe89b9974cf4fe100;p=unikraft%2Flibs%2Fnewlib.git Define LDBL_EQ_DBL on ARM64 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 Reviewed-by: Felipe Huici --- diff --git a/Makefile.uk b/Makefile.uk index 5c7c225..390e4f4 100644 --- a/Makefile.uk +++ b/Makefile.uk @@ -86,6 +86,7 @@ LIBNEWLIB_GLOBAL_FLAGS-y += -D_POSIX_REALTIME_SIGNALS 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)