meson: link with -lrt if needed for clock_gettime

This is already done in autotools, and fixes the build with glibc < 2.17.

Signed-off-by: Loïc Yhuel <loic.yhuel@softathome.com>
This commit is contained in:
Loïc Yhuel 2020-04-02 18:25:54 +02:00
parent ea09c2fde7
commit 74182eb605
3 changed files with 12 additions and 3 deletions

View file

@ -54,7 +54,7 @@ benchmark(
executable(
'fixed-benchmark',
'fixed-benchmark.c',
dependencies: test_runner_dep
dependencies: [ test_runner_dep, rt_dep ]
)
)