-
Notifications
You must be signed in to change notification settings - Fork 355
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
Missing compile option -lrt
when target is Linux
#292
Comments
Some details about this flag here https://stackoverflow.com/questions/15821663/what-is-the-lrt-flag-in-gnu-make. @drywolf Thoughts on this? do you know what platforms will need this flag? |
Looks like the node.js source has some references to the I had a quick look at some of the node.js build configs, and saw those libraries referenced as well in certain places. @irbull do you know how we could make sure that the necessary libraries are linked ? How did you figure out that -lrt might be needed for the linux build ? |
If not set, j2v8 may throw
undefined reference to 'clock_gettime'
at runtimeI added this option to https://github.com/eclipsesource/J2V8/blob/master/cmake/NodeJsUtils.cmake#L142 and solved this issue
The text was updated successfully, but these errors were encountered: