]> xenbits.xensource.com Git - unikraft/libs/musl.git/commit
Config.uk: Disable default LIBMUSL_COMPLEX
authorRazvan Deaconescu <razvand@unikraft.io>
Wed, 10 May 2023 16:00:33 +0000 (19:00 +0300)
committerUnikraft <monkey@unikraft.io>
Wed, 10 May 2023 17:54:19 +0000 (17:54 +0000)
commit45c4aa586fa0a215ebd1bc2950f5fe249d1b965c
tree54fd47bc9b33dff541889dacaabaf89d1f4ead16
parentf7564c7d956ebdbf1bcfa1be127758eec45fc00f
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 <razvand@unikraft.io>
Reviewed-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Reviewed-by: Andrei Tatar <andrei@unikraft.io>
Approved-by: Maria Sfiraiala <maria.sfiraiala@gmail.com>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #47
Config.uk