jose: fix static library usage
authorRosen Penev <rosenp@gmail.com>
Sat, 17 Sep 2022 22:22:53 +0000 (15:22 -0700)
committerRosen Penev <rosenp@gmail.com>
Mon, 19 Sep 2022 06:19:57 +0000 (23:19 -0700)
commitd86df0df5d96d9b0768b0720c59ba262613228b8
tree6f749b3d7377410c1dd9bad047ce777fc82b0a19
parentfd5ba615497a4db8c038b99650273e0c485bd254
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>
(cherry picked from commit c61b70918b6c10f6fd726b098474736a7e0ae9cd)
libs/jose/Makefile
libs/jose/patches/010-whole.patch [new file with mode: 0644]