eclipsesource / eclipsesource/J2V8

Missing compile option `-lrt` when target is Linux

Open
#292 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.6k
Forks
387
PR merge metrics
No merged PRs in 30d

Description

If not set, j2v8 may throw `undefined reference to 'clock_gettime'` at runtime

I added this option to https://github.com/eclipsesource/J2V8/blob/master/cmake/NodeJsUtils.cmake#L142 and solved this issue

```cmake
set (njs_${config_name}_libs ${njs_libs} -lrt PARENT_SCOPE)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.