Skip to contentSkip to conversation

systemd: link udev statically with systemd internal libraries

PATCH New Alexander Kanavin 1 participant 1 message Mar 22, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 systemd: link udev statically with systemd internal libraries

This was the default behavior with autotools, but is not with meson. Otherwise, udev package will pull in the rest of systemd even that is not desired.

[YOCTO #12618]

---
 meta/recipes-core/systemd/systemd_237.bb | 5 +++++
 1 file changed, 5 insertions(+)
meta/recipes-core/systemd/systemd_237.bb +5 -0
index ecf8e749406..c67e9f21fcf 100644
@@ -167,6 +167,11 @@ rootprefix ?= "${root_prefix}"
 rootlibdir ?= "${base_libdir}"
 rootlibexecdir = "${rootprefix}/lib"
 
+# This links udev statically with systemd helper library.
+# Otherwise udev package would depend on systemd package (which has the needed shared library),
+# and always pull it into images.
+EXTRA_OEMESON += "-Dlink-udev-shared=false"
+
 EXTRA_OEMESON += "-Dnobody-user=nobody \
                   -Dnobody-group=nobody \
                   -Droothomedir=${ROOTHOME} \
Signature · 1 line
2.16.1