mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
bluez5: prevent unloading spa-bluez5.so
GObject is not compatible with unloading shared libraries using it, so add linker flags preventing that.
This commit is contained in:
parent
661569febc
commit
93a473eff6
1 changed files with 4 additions and 0 deletions
|
|
@ -73,10 +73,14 @@ if get_option('bluez5-backend-hsphfpd').allowed()
|
|||
bluez5_sources += ['backend-hsphfpd.c']
|
||||
endif
|
||||
|
||||
# The library uses GObject, and cannot be unloaded
|
||||
bluez5_link_args = [ '-Wl,-z', '-Wl,nodelete' ]
|
||||
|
||||
bluez5lib = shared_library('spa-bluez5',
|
||||
bluez5_sources,
|
||||
include_directories : [ configinc ],
|
||||
dependencies : [ spa_dep, bluez5_deps ],
|
||||
link_args : bluez5_link_args,
|
||||
install : true,
|
||||
install_dir : spa_plugindir / 'bluez5')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue