From a3c2476de19e6635458273ceeaeceff124fabd63 Mon Sep 17 00:00:00 2001 From: Chen-Yu Tsai Date: Fri, 17 May 2019 13:59:26 +0800 Subject: [PATCH] Respect libdir for install path Distritubions may install libraries under architecture-specific sub-directories, to support multiple architectures on the same system. In addition, the user may not wish to install the library with the default prefix. Use the libdir variable when setting the install path. This allows both specifying different sub-directories, and a different prefix. --- src/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meson.build b/src/meson.build index 5209af5..d73abb1 100644 --- a/src/meson.build +++ b/src/meson.build @@ -85,7 +85,7 @@ deps = [ v4l2_request_drv_video = shared_module('v4l2_request_drv_video', name_prefix: '', install: true, - install_dir: '/usr/lib/dri/', + install_dir: join_paths(get_option('libdir'), 'dri'), c_args: cflags, sources: [ sources, headers, autoconf ], include_directories: includes,