diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-11-08 13:37:27 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-11-08 18:18:34 +0100 |
commit | c47511da7e2bab1a429fc1958a73d3f426ebb3da (patch) | |
tree | 924ddbea6299049e3000f1ff85ddf3be95be55fc /src | |
parent | d6b4d1c7c42db5b53ece960c279856d96abbf216 (diff) | |
download | systemd-c47511da7e2bab1a429fc1958a73d3f426ebb3da.tar.gz |
meson: add version.h as dependency to more targets
version.h can be generated after compilation starts, creating a race condition
between compilation of various .c files and creation of version.h. Let's add it
as a dependency to more build targets that require version.h or build.h.
So far we played whack'a'mole by adding versiondep whenever compilation failed.
In principle any target which includes compilation (i.e. any that has .c
sources directly), could require this. I don't understand why we didn't see
more failures… But it seems reasonable to just add the dependency more widely.
Diffstat (limited to 'src')
-rw-r--r-- | src/basic/build.c | 1 | ||||
-rw-r--r-- | src/shared/meson.build | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/basic/build.c b/src/basic/build.c index 360ff1357b..0b7a44f1f6 100644 --- a/src/basic/build.c +++ b/src/basic/build.c @@ -4,6 +4,7 @@ #include "build.h" #include "macro.h" +#include "version.h" const char* const systemd_features = diff --git a/src/shared/meson.build b/src/shared/meson.build index e5879d046b..bdf1701ba9 100644 --- a/src/shared/meson.build +++ b/src/shared/meson.build @@ -466,7 +466,8 @@ libshared_deps = [threads, libselinux, libxenctrl, libxz, - libzstd] + libzstd, + versiondep] libshared_sym_path = '@0@/libshared.sym'.format(meson.current_source_dir()) |