build/meson: fix link failure of bluetooth's nm-bt-test

$ meson . build -D bluez5_dun=true -D selinux=false -D qt=false

(cherry picked from commit 390086a3cc)
This commit is contained in:
Thomas Haller 2019-12-02 09:38:57 +01:00
parent 34cfc5861a
commit bc3f5ca6a9

View file

@ -15,11 +15,22 @@ if enable_bluez5_dun
deps += bluez5_dep
endif
libnm_device_plugin_bluetooth = shared_module(
'nm-device-plugin-bluetooth',
libnm_device_plugin_bluetooth_static = static_library(
'nm-device-plugin-bluetooth-static',
sources: sources,
dependencies: deps,
c_args: daemon_c_flags,
)
libnm_device_plugin_bluetooth_static_dep = declare_dependency(
link_whole: libnm_device_plugin_bluetooth_static,
)
deps += libnm_device_plugin_bluetooth_static_dep
libnm_device_plugin_bluetooth = shared_module(
'nm-device-plugin-bluetooth',
dependencies: deps,
link_args: ldflags_linker_script_devices,
link_depends: linker_script_devices,
install: true,
@ -41,7 +52,7 @@ if enable_tests
executable(
test_unit,
'tests/' + test_unit + '.c',
dependencies: libnetwork_manager_test_dep,
dependencies: [ libnetwork_manager_test_dep, deps ],
c_args: test_c_flags,
)
endif