Use dep_rt in amdgpu/meson.build

The amdgpu implementation uses `clock_gettime` so it needs to check whether it needs to link
against `-librt`.

Signed-off-by: Valentin Churavy <v.churavy@gmail.com>
This commit is contained in:
Valentin Churavy 2020-11-17 19:51:04 +00:00
parent a55042e2c6
commit 10dd3eb6d5

View file

@ -36,7 +36,7 @@ libdrm_amdgpu = shared_library(
],
include_directories : [inc_root, inc_drm],
link_with : libdrm,
dependencies : [dep_pthread_stubs, dep_atomic_ops],
dependencies : [dep_pthread_stubs, dep_atomic_ops, dep_rt],
version : '1.0.0',
install : true,
)