mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
scripts: Use special ${LIB} token for architecture-independence
On GNU/Linux systems, the literal string '${LIB}' in dynamic linker
paths expands to "lib", a biarch libQUAL directory such as "lib64", or
a Debian-style multiarch directory such as "lib/x86_64-linux-gnu".
If we're installing libraries to such a directory, and we have both
word-sizes' compatibility libraries available, then pw-pulse can
use LD_LIBRARY_PATH='/usr/${LIB}/pipewire-0.3/pulse' to make both
i386 and x86_64 programs load the correct version.
Signed-off-by: Simon McVittie <smcv@debian.org>
This commit is contained in:
parent
96eb6e4df8
commit
e493be3844
3 changed files with 23 additions and 2 deletions
|
|
@ -51,10 +51,13 @@ vflag = '-Wl,--version-script,@0@/@1@'.format(meson.current_source_dir(), mapfil
|
|||
libpulse_path = get_option('libpulse-path')
|
||||
if libpulse_path == ''
|
||||
libpulse_path = join_paths(modules_install_dir, 'pulse')
|
||||
libpulse_path_dlopen = join_paths(modules_install_dir_dlopen, 'pulse')
|
||||
else
|
||||
libpulse_path_dlopen = libpulse_path
|
||||
endif
|
||||
|
||||
tools_config = configuration_data()
|
||||
tools_config.set('LIBPULSE_PATH', libpulse_path)
|
||||
tools_config.set('LIBPULSE_PATH', libpulse_path_dlopen)
|
||||
|
||||
configure_file(input : 'pw-pulse.in',
|
||||
output : 'pw-pulse',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue