mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
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:
parent
f996ad0688
commit
7f44a623e0
12 changed files with 35 additions and 0 deletions
|
|
@ -259,6 +259,10 @@ all_modules += [
|
|||
|
||||
# Generate a shared module object for each modules
|
||||
|
||||
# FIXME: Not all modules actually have a dep in modlibexecdir
|
||||
# FIXME: meson doesn't support multiple RPATH arguments currently
|
||||
rpath_dirs = join_paths(privlibdir) + ':' + join_paths(modlibexecdir)
|
||||
|
||||
foreach m : all_modules
|
||||
name = m[0]
|
||||
sources = m[1]
|
||||
|
|
@ -273,6 +277,7 @@ foreach m : all_modules
|
|||
include_directories : [configinc, topinc],
|
||||
c_args : [pa_c_args, server_c_args, '-DPA_MODULE_NAME=' + name.underscorify()] + extra_flags,
|
||||
install : true,
|
||||
install_rpath : rpath_dirs,
|
||||
install_dir : modlibexecdir,
|
||||
dependencies : [thread_dep, libpulse_dep, libpulsecommon_dep, libpulsecore_dep] + extra_deps,
|
||||
link_args : [nodelete_link_args, '-Wl,--no-undefined' ],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue