]> xenbits.xensource.com Git - unikraft/libs/musl.git/commitdiff
Makefile.uk.musl.complex: Include tgmath.h header 12/head
authorFlorin Postolache <florin.postolache80@gmail.com>
Fri, 11 Nov 2022 10:37:17 +0000 (12:37 +0200)
committerUnikraft <monkey@unikraft.io>
Thu, 24 Nov 2022 12:07:57 +0000 (12:07 +0000)
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 <florin.postolache80@gmail.com>
Reviewed-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.io>
Reviewed-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Reviewed-by: Razvan Deaconescu <razvand@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #24

Makefile.uk.musl.complex

index 84c8d26e410bb317b3db9a985a532ea6aec66901..154a00027e13d99507b41b7dd613e995e590875b 100644 (file)
@@ -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