meson: allow static linking of systemd-hwdb

Various distros split udev and its helpers into a separate binary
package. In case of Debian this also includes systemd-hwdb.
In Debian, the udev package is not supposed to depend on systemd, so a
dependency on libsystemd-shared.so is not desired. Allow the
systemd-hwdb binary to be linked statically if link-udev-shared is set
to false.

Follow-up for 3a30f21ff8.
This commit is contained in:
Michael Biebl 2017-04-21 18:32:14 +02:00 committed by Zbigniew Jędrzejewski-Szmek
parent 26bd4b7f9c
commit 0da6f39619

View file

@ -2018,8 +2018,8 @@ if conf.get('ENABLE_HWDB', 0) == 1
'src/hwdb/hwdb.c',
'src/libsystemd/sd-hwdb/hwdb-internal.h',
include_directories : includes,
link_with : [libshared],
install_rpath : rootlibexecdir,
link_with : [libudev_internal],
install_rpath : udev_rpath,
install : true,
install_dir : rootbindir)
public_programs += [exe]