unikraft / lib-musl

musl: A C standard library
Other
9 stars 29 forks source link

`Config.uk`: Disable default LIBMUSL_COMPLEX #47

Closed razvand closed 1 year ago

razvand commented 1 year ago

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.