Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: fix unit tests build with lrt
After the commit 77fa45b ('lua: add fiber.top() listing fiber cpu consumption') the unit tests builds failed like: /opt/rh/devtoolset-6/root/usr/libexec/gcc/x86_64-redhat-linux/6.3.1/ld: ../../src/lib/core/libcore.a(fiber.c.o): undefined reference to symbol 'clock_gettime@@GLIBC_2.2.5' //lib64/librt.so.1: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status test/unit/CMakeFiles/cbus.test.dir/build.make:108: recipe for target 'test/unit/cbus.test' failed make[2]: *** [test/unit/cbus.test] Error 1 To fix the issue the 'rt' library was added to test unit cmake file only for linux and freebsd targets. Close #4639
- Loading branch information