From: Michael Biebl Date: Sat, 29 Apr 2017 06:21:07 +0000 (+0200) Subject: meson: do not link libshared dynamically against libudev (#5850) X-Git-Tag: v234~269 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e899a929346b8b658c809779d5bc7eb4ffaf3bc;p=thirdparty%2Fsystemd.git meson: do not link libshared dynamically against libudev (#5850) Linking dynamically against libudev will fail once https://github.com/mesonbuild/meson/pull/1545 is merged and apparently already triggers a link failure on s390x. Make libshared provide the udev symbols by including libudev_sources into libshared. This will cause those files to be compiled twice, but it actually reduces the installed size and is closer to what the autotools build system is doing. Closes #5828 --- diff --git a/src/shared/meson.build b/src/shared/meson.build index 0747f766491..f1d73d1b3ff 100644 --- a/src/shared/meson.build +++ b/src/shared/meson.build @@ -127,10 +127,10 @@ libshared = shared_library( basic_sources, journal_internal_sources, libsystemd_internal_sources, + libudev_sources, include_directories : includes, link_args : ['-shared'], c_args : ['-fvisibility=default'], - link_with : [libudev], dependencies : [threads, librt, libcap,