From 45c4aa586fa0a215ebd1bc2950f5fe249d1b965c Mon Sep 17 00:00:00 2001 From: Razvan Deaconescu Date: Wed, 10 May 2023 19:00:33 +0300 Subject: [PATCH] Config.uk: Disable default LIBMUSL_COMPLEX When using Clang to build Musl with complex numbers support, a linking error appears: `__muldc3` symbol is undefined. For Clang, the `__muldc3` symbol is implemented by `libcompiler-rt`. As complex number support is not typically required by applications (that use Musl), this commit disable it by setting the `LIBMUSL_COMPLEX` option to `n`. If required, the application will enable `LIBMUSL_COMPLEX` (set it to `y`) and, in the case of Clang, add `libcompiler-rt`. Signed-off-by: Razvan Deaconescu Reviewed-by: Stefan Jumarea Reviewed-by: Andrei Tatar Approved-by: Maria Sfiraiala Tested-by: Unikraft CI GitHub-Closes: #47 --- Config.uk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Config.uk b/Config.uk index 6dd37c5..f199a6a 100644 --- a/Config.uk +++ b/Config.uk @@ -38,7 +38,7 @@ config LIBMUSL_AIO config LIBMUSL_COMPLEX bool "libcomplex" - default y + default n config LIBMUSL_CONF bool "libconf"