summaryrefslogtreecommitdiff
path: root/src/libudev
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-12-16 10:58:44 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-12-16 11:01:08 +0100
commit03f7ddf0bf170c00e6d53bf039b6566113f6c936 (patch)
treeefcce6950f2614482c749dd05217d70307115694 /src/libudev
parentb93f018f574a92c680669c35fea37be8d8f73c3f (diff)
downloadsystemd-03f7ddf0bf170c00e6d53bf039b6566113f6c936.tar.gz
meson: stop building out convenience libraries by default
The meson default for static_library() are: build_by_default=true, install=false. We never interact with the static libraries, and we only care about them as a stepping-stone towards the installable executables or libraries. Thus let's only build them if they are a dependency of something else we are building. While at it, let's drop install:false, since this appears to be the default. This change would have fixed the issue with lib_import_common failing to build too: we wouldn't attempt to build it. In practice this changes very little, because we generally only declare static libraries where there's something in the default target that will make use of them. But it seems to be a better pattern to set build_by_default to false.
Diffstat (limited to 'src/libudev')
-rw-r--r--src/libudev/meson.build3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libudev/meson.build b/src/libudev/meson.build
index 488ae62480..e94b43d9b7 100644
--- a/src/libudev/meson.build
+++ b/src/libudev/meson.build
@@ -28,7 +28,8 @@ libudev_basic = static_library(
'udev-basic',
libudev_sources,
include_directories : includes,
- c_args : ['-fvisibility=default'])
+ c_args : ['-fvisibility=default'],
+ build_by_default : false)
libudev_static = static_library(
'udev_static',