build-sys: meson: Correctly set up RPATH

This was being done automatically by autotools, now we need to manually
specify this for each executable/library with a dependency in a
non-standard directory.
This commit is contained in:
Arun Raghavan 2019-08-03 02:41:55 +05:30
parent f996ad0688
commit 7f44a623e0
12 changed files with 35 additions and 0 deletions

View file

@ -14,6 +14,9 @@ libraop_headers = [
'raop-util.h',
]
# FIXME: meson doesn't support multiple RPATH arguments currently
rpath_dirs = join_paths(privlibdir) + ':' + join_paths(modlibexecdir)
libraop = shared_library('raop',
libraop_sources,
libraop_headers,
@ -22,5 +25,6 @@ libraop = shared_library('raop',
include_directories : [configinc, topinc],
dependencies : [libpulse_dep, libpulsecommon_dep, libpulsecore_dep, librtp_dep, openssl_dep],
install : true,
install_rpath : rpath_dirs,
install_dir : modlibexecdir,
)