summaryrefslogtreecommitdiff
path: root/src/libudev
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-12-16 11:09:51 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-12-16 11:09:51 +0100
commit3a4524116a130fb728bc52fa7ebf70c45fba79c7 (patch)
treeaf322ed501f52fff41d2105a86e38429471e7edb /src/libudev
parent03f7ddf0bf170c00e6d53bf039b6566113f6c936 (diff)
downloadsystemd-3a4524116a130fb728bc52fa7ebf70c45fba79c7.tar.gz
meson: drop convenience library that was only used in one place
It doesn't make much sense to do this, the result is very similar to including to objects directly in the output binary without going through an intermediate target. The linkage of test-libudev was rather strange too: udev_link_with is used to allow udev to be linked to a static version of libshared, so that udev is not linked to libshared.so. But here we were using both, defeating the purpose of udev_link_with. I don't think it matters what the test is linked to, so let's use the non-static linkage to save space.
Diffstat (limited to 'src/libudev')
-rw-r--r--src/libudev/meson.build8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/libudev/meson.build b/src/libudev/meson.build
index e94b43d9b7..77b31a9492 100644
--- a/src/libudev/meson.build
+++ b/src/libudev/meson.build
@@ -31,12 +31,6 @@ libudev_basic = static_library(
c_args : ['-fvisibility=default'],
build_by_default : false)
-libudev_static = static_library(
- 'udev_static',
- include_directories : includes,
- link_with : udev_link_with,
- link_whole : libudev_basic)
-
static_libudev = get_option('static-libudev')
static_libudev_pic = static_libudev == 'true' or static_libudev == 'pic'
@@ -53,5 +47,5 @@ custom_target(
tests += [
[['src/libudev/test-libudev.c'],
[libshared,
- libudev_static]],
+ libudev_basic]],
]