unikraft / lib-musl

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

Makefile.uk: Add flag to avoid gcc specifc symbol #38

Closed mariasfiraiala closed 1 year ago

mariasfiraiala commented 1 year ago

When building apps with clang for x86, an asm specific symbol, __muldc3, which results in a undefined reference error, at link time.

This PR adds the -ffast-math flag, when clang is used in order to fix this issue.

mariasfiraiala commented 1 year ago

@StefanJum I've amended the commit. Regarding adding the dependency on the libmath config, the problem actually resides in the libcomplex part musl, so I've set the dependency accordingly.