mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
echo-cancel: Fix macOS build
Signed-off-by: Weijia Wang <contact@weijia.wang> Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/786>
This commit is contained in:
parent
3e038c6d88
commit
25bfdb3ab8
1 changed files with 9 additions and 2 deletions
|
|
@ -3,7 +3,8 @@
|
||||||
# even conditional ones).
|
# even conditional ones).
|
||||||
|
|
||||||
# This library requires a symbol from module-echo-cancel, hence we need
|
# This library requires a symbol from module-echo-cancel, hence we need
|
||||||
# '-Wl,--unresolved-symbols=ignore-in-object-files' otherwise it fails
|
# '-Wl,--unresolved-symbols=ignore-in-object-files', or
|
||||||
|
# '-Wl,-undefined,dynamic_lookup' on macOS, otherwise it fails
|
||||||
# at link time.
|
# at link time.
|
||||||
|
|
||||||
add_languages('cpp')
|
add_languages('cpp')
|
||||||
|
|
@ -12,12 +13,18 @@ libwebrtc_util_sources = [
|
||||||
'webrtc.cc'
|
'webrtc.cc'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if host_machine.system() == 'darwin'
|
||||||
|
ignore_unresolved_symbols_link_args = ['-Wl,-undefined,dynamic_lookup']
|
||||||
|
else
|
||||||
|
ignore_unresolved_symbols_link_args = ['-Wl,--unresolved-symbols=ignore-in-object-files']
|
||||||
|
endif
|
||||||
|
|
||||||
libwebrtc_util = shared_library('webrtc-util',
|
libwebrtc_util = shared_library('webrtc-util',
|
||||||
libwebrtc_util_sources,
|
libwebrtc_util_sources,
|
||||||
cpp_args : [pa_c_args, server_c_args],
|
cpp_args : [pa_c_args, server_c_args],
|
||||||
include_directories : [configinc, topinc],
|
include_directories : [configinc, topinc],
|
||||||
dependencies : [libpulse_dep, libpulsecommon_dep, libpulsecore_dep, libatomic_ops_dep, webrtc_dep, libintl_dep],
|
dependencies : [libpulse_dep, libpulsecommon_dep, libpulsecore_dep, libatomic_ops_dep, webrtc_dep, libintl_dep],
|
||||||
link_args : [nodelete_link_args, '-Wl,--unresolved-symbols=ignore-in-object-files'],
|
link_args : [nodelete_link_args, ignore_unresolved_symbols_link_args],
|
||||||
install : true,
|
install : true,
|
||||||
install_rpath : privlibdir,
|
install_rpath : privlibdir,
|
||||||
install_dir : modlibexecdir,
|
install_dir : modlibexecdir,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue