|
Zbigniew Jędrzejewski-Szmek |
f69edd |
From 8954e7ccc1f2005df221f50882f3253518c63159 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
Date: Wed, 3 Jul 2024 16:51:05 +0200
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
Subject: [PATCH 1/3] meson: rename libbasic to libbasic_static
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
Our variables for internal libraries are named 'libfoo' for the shared lib
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
variant, and 'libfoo_static' for the static lib variant. The only exception was
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
libbasic, because we didn't have a shared variant for it. But let's rename it
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
for consitency. This makes the build config easier to understand.
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
(cherry picked from commit 732ed8a84e8b264fccd3f5c0fc68ec2894b6d8ea)
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
meson.build | 4 ++--
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
src/basic/meson.build | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
src/libsystemd/meson.build | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
src/partition/meson.build | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
src/shared/meson.build | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
src/shutdown/meson.build | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
src/sysusers/meson.build | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
src/test/meson.build | 8 ++++----
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
src/tmpfiles/meson.build | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
9 files changed, 13 insertions(+), 13 deletions(-)
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
diff --git a/meson.build b/meson.build
|
|
Zbigniew Jędrzejewski-Szmek |
f69edd |
index b1a110cbfc..58748a37a3 100644
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
--- a/meson.build
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
+++ b/meson.build
|
|
Zbigniew Jędrzejewski-Szmek |
f69edd |
@@ -2089,7 +2089,7 @@ libsystemd = shared_library(
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
# Make sure our library is never deleted from memory, so that our open logging fds don't leak on dlopen/dlclose cycles.
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
'-z', 'nodelete',
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
'-Wl,--version-script=' + libsystemd_sym_path],
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
- link_with : [libbasic],
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
+ link_with : [libbasic_static],
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
link_whole : [libsystemd_static],
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
dependencies : [librt,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
threads,
|
|
Zbigniew Jędrzejewski-Szmek |
f69edd |
@@ -2254,7 +2254,7 @@ nss_template = {
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
'link_with' : [
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
libsystemd_static,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
libshared_static,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
- libbasic,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
+ libbasic_static,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
],
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
'dependencies' : [
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
librt,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
diff --git a/src/basic/meson.build b/src/basic/meson.build
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
index 9a214575a5..b538775576 100644
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
--- a/src/basic/meson.build
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
+++ b/src/basic/meson.build
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
@@ -274,7 +274,7 @@ filesystem_switch_case_h = custom_target(
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
basic_sources += [filesystem_list_h, filesystem_switch_case_h, filesystems_gperf_h]
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
-libbasic = static_library(
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
+libbasic_static = static_library(
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
'basic',
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
basic_sources,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
fundamental_sources,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
diff --git a/src/libsystemd/meson.build b/src/libsystemd/meson.build
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
index 6d4337d1a7..243549299f 100644
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
--- a/src/libsystemd/meson.build
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
+++ b/src/libsystemd/meson.build
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
@@ -118,7 +118,7 @@ libsystemd_static = static_library(
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
libsystemd_sources,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
include_directories : libsystemd_includes,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
c_args : libsystemd_c_args,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
- link_with : [libbasic],
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
+ link_with : [libbasic_static],
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
dependencies : [threads,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
librt,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
userspace],
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
diff --git a/src/partition/meson.build b/src/partition/meson.build
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
index 52e1368116..2cfe43e029 100644
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
--- a/src/partition/meson.build
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
+++ b/src/partition/meson.build
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
@@ -32,7 +32,7 @@ executables += [
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
'sources' : files('repart.c'),
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
'c_args' : '-DSTANDALONE',
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
'link_with' : [
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
- libbasic,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
+ libbasic_static,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
libshared_fdisk,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
libshared_static,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
libsystemd_static,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
diff --git a/src/shared/meson.build b/src/shared/meson.build
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
index c5106d87d5..e513c0ec1c 100644
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
--- a/src/shared/meson.build
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
+++ b/src/shared/meson.build
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
@@ -358,7 +358,7 @@ libshared = shared_library(
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
'-Wl,--version-script=' + libshared_sym_path],
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
link_depends : libshared_sym_path,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
link_whole : [libshared_static,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
- libbasic,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
+ libbasic_static,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
libsystemd_static],
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
dependencies : [libshared_deps,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
userspace],
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
diff --git a/src/shutdown/meson.build b/src/shutdown/meson.build
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
index 219f9fd308..9bc60f83e5 100644
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
--- a/src/shutdown/meson.build
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
+++ b/src/shutdown/meson.build
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
@@ -20,7 +20,7 @@ executables += [
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
'sources' : systemd_shutdown_sources,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
'c_args' : '-DSTANDALONE',
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
'link_with' : [
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
- libbasic,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
+ libbasic_static,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
libshared_static,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
libsystemd_static,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
],
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
diff --git a/src/sysusers/meson.build b/src/sysusers/meson.build
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
index 0f9c067d50..403d82a340 100644
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
--- a/src/sysusers/meson.build
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
+++ b/src/sysusers/meson.build
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
@@ -14,7 +14,7 @@ executables += [
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
'sources' : files('sysusers.c'),
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
'c_args' : '-DSTANDALONE',
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
'link_with' : [
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
- libbasic,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
+ libbasic_static,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
libshared_static,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
libsystemd_static,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
],
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
diff --git a/src/test/meson.build b/src/test/meson.build
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
index 3abbb94d9f..9d3c7d675f 100644
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
--- a/src/test/meson.build
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
+++ b/src/test/meson.build
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
@@ -274,7 +274,7 @@ executables += [
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
# only static linking apart from libdl, to make sure that the
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
# module is linked to all libraries that it uses.
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
'sources' : files('test-dlopen.c'),
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
- 'link_with' : libbasic,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
+ 'link_with' : libbasic_static,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
'dependencies' : libdl,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
'install' : false,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
'type' : 'manual',
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
@@ -410,7 +410,7 @@ executables += [
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
},
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
test_template + {
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
'sources' : files('test-sizeof.c'),
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
- 'link_with' : libbasic,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
+ 'link_with' : libbasic_static,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
},
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
test_template + {
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
'sources' : files('test-time-util.c'),
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
@@ -590,7 +590,7 @@ executables += [
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
test_template + {
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
'sources' : files('../libsystemd/sd-device/test-sd-device-thread.c'),
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
'link_with' : [
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
- libbasic,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
+ libbasic_static,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
libsystemd,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
],
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
'dependencies' : threads,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
@@ -598,7 +598,7 @@ executables += [
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
test_template + {
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
'sources' : files('../libudev/test-udev-device-thread.c'),
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
'link_with' : [
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
- libbasic,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
+ libbasic_static,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
libudev,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
],
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
'dependencies' : threads,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
diff --git a/src/tmpfiles/meson.build b/src/tmpfiles/meson.build
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
index 2e918509a7..09ad839586 100644
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
--- a/src/tmpfiles/meson.build
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
+++ b/src/tmpfiles/meson.build
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
@@ -20,7 +20,7 @@ executables += [
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
'sources' : systemd_tmpfiles_sources,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
'c_args' : '-DSTANDALONE',
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
'link_with' : [
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
- libbasic,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
+ libbasic_static,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
libshared_static,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
libsystemd_static,
|
|
Zbigniew Jędrzejewski-Szmek |
38b885 |
],
|