diff options
author | Rosen Penev <rosenp@gmail.com> | 2022-09-17 15:22:53 -0700 |
---|---|---|
committer | Rosen Penev <rosenp@gmail.com> | 2022-09-18 23:19:31 -0700 |
commit | c61b70918b6c10f6fd726b098474736a7e0ae9cd (patch) | |
tree | 6e09131e81233fe352266cd3674508c04704f5be /libs/jose/patches/010-whole.patch | |
parent | f8c25627ebe1d92fb89caa97f864e2972b79a63f (diff) |
jose: fix static library usage
When libjose is built statically, it must use --whole-archive as it uses
GCC's constructor attribute to initialize itself.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'libs/jose/patches/010-whole.patch')
-rw-r--r-- | libs/jose/patches/010-whole.patch | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libs/jose/patches/010-whole.patch b/libs/jose/patches/010-whole.patch new file mode 100644 index 000000000..33ee9e277 --- /dev/null +++ b/libs/jose/patches/010-whole.patch @@ -0,0 +1,10 @@ +--- a/cmd/meson.build ++++ b/cmd/meson.build +@@ -22,6 +22,6 @@ executable(meson.project_name(), + 'alg.c', + 'fmt.c', + dependencies: jansson, +- link_with: libjose, ++ link_whole: libjose, + install: true + ) |