mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-10-01 13:44:40 +00:00
meson: better check for module dlopen dir
The ${LIB} token is a glibc extension, so it is incorrect to use it on all Linux. Doing so will break e.g. with musl libc.
This commit is contained in:
parent
8bbc1c1abf
commit
9f7d960c66
|
@ -49,7 +49,9 @@ pipewire_configdir = pipewire_sysconfdir / 'pipewire'
|
|||
pipewire_confdatadir = pipewire_datadir / 'pipewire'
|
||||
modules_install_dir = pipewire_libdir / pipewire_name
|
||||
|
||||
if host_machine.system() == 'linux'
|
||||
cc = meson.get_compiler('c')
|
||||
|
||||
if cc.has_header('features.h') and cc.get_define('__GLIBC__', prefix: '#include <features.h>') != ''
|
||||
# glibc ld.so interprets ${LIB} in a library loading path with an
|
||||
# appropriate value for the current architecture, typically something
|
||||
# like lib, lib64 or lib/x86_64-linux-gnu.
|
||||
|
@ -72,8 +74,6 @@ pipewire_headers_dir = pipewire_name / 'pipewire'
|
|||
|
||||
pkgconfig = import('pkgconfig')
|
||||
|
||||
cc = meson.get_compiler('c')
|
||||
|
||||
common_flags = [
|
||||
'-fvisibility=hidden',
|
||||
'-fno-strict-aliasing',
|
||||
|
|
Loading…
Reference in a new issue