From: Florin Postolache Date: Fri, 11 Nov 2022 10:37:17 +0000 (+0200) Subject: Makefile.uk.musl.complex: Include tgmath.h header X-Git-Tag: RELEASE-0.11.0~21 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=refs%2Fpull%2F12%2Fhead;p=unikraft%2Flibs%2Fmusl.git Makefile.uk.musl.complex: Include tgmath.h header Add tgmath.h header when both complex and math sublibs are enabled. This header unites all types of math trigonometric functions for all types(float, double, long double and complex) under one definition. The header is not needed by musl source files but could be required by applications. Signed-off-by: Florin Postolache Reviewed-by: Cezar Craciunoiu Reviewed-by: Stefan Jumarea Reviewed-by: Razvan Deaconescu Approved-by: Razvan Deaconescu Tested-by: Unikraft CI GitHub-Closes: #24 --- diff --git a/Makefile.uk.musl.complex b/Makefile.uk.musl.complex index 84c8d26..154a000 100644 --- a/Makefile.uk.musl.complex +++ b/Makefile.uk.musl.complex @@ -1,6 +1,9 @@ LIBMUSL_COMPLEX_HDRS-y += $(LIBMUSL)/include/complex.h LIBMUSL_COMPLEX_HDRS-y += $(LIBMUSL)/include/float.h LIBMUSL_COMPLEX_HDRS-y += $(LIBMUSL)/src/intenal/libm.h +ifeq ($(CONFIG_LIBMUSL_MATH),y) + LIBMUSL_COMPLEX_HDRS-y += $(LIBMUSL)/include/tgmath.h +endif LIBMUSL_COMPLEX_SRCS-y += $(LIBMUSL)/src/complex/casinh.c LIBMUSL_COMPLEX_SRCS-y += $(LIBMUSL)/src/complex/csinhl.c