]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: allow static linking of systemd-hwdb
authorMichael Biebl <biebl@debian.org>
Fri, 21 Apr 2017 16:32:14 +0000 (18:32 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 24 Apr 2017 23:25:33 +0000 (19:25 -0400)
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 3a30f21ff8ddbef5eae61d6e4305ec1cd2e4e041.

meson.build

index c808a8fc430fa155c5e0e911df380f2ce132dfaf..a4c93de21af01753c0fac1ba3894c957d58468d4 100644 (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]