-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Makefile.uk: Add flag to avoid gcc specifc symbol #38
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @mariasfiraiala, it works on my side.
Since it feels a little tricky, would it make sense to add this only if libmath
is selected in musl?
c0ebdd7
to
aa21294
Compare
@StefanJum I've amended the commit. Regarding adding the dependency on the |
When building apps with `clang` for `x86`, an asm specific symbol, `__muldc3`, appears, which results in a undefined reference error, at link time. This commit adds the `-ffast-math` flag, when `clang` is used in order to fix this issue. Signed-off-by: Maria Sfiraiala <maria.sfiraiala@gmail.com>
aa21294
to
1abd42c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good now, thanks @mariasfiraiala.
Reviewed-by: Stefan Jumarea stefanjumarea02@gmail.com
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved-by: Razvan Deaconescu razvand@unikraft.io
When building apps with
clang
forx86
, an asm specific symbol,__muldc3
, which results in a undefined reference error, at link time.This PR adds the
-ffast-math
flag, whenclang
is used in order to fix this issue.