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