From 47037a4068922295fc893c93067fb8d7f3f1fcd6 Mon Sep 17 00:00:00 2001 From: Florin Postolache Date: Fri, 11 Nov 2022 12:37:17 +0200 Subject: [PATCH] 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 --- Makefile.uk.musl.complex | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.39.5