diff options
Diffstat (limited to 'meta-oe')
-rw-r--r-- | meta-oe/recipes-extended/jansson/jansson/0001-Only-export-symbols-starting-with-json_-and-jansson_.patch | 30 | ||||
-rw-r--r-- | meta-oe/recipes-extended/jansson/jansson_2.14.bb | 1 |
2 files changed, 31 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/jansson/jansson/0001-Only-export-symbols-starting-with-json_-and-jansson_.patch b/meta-oe/recipes-extended/jansson/jansson/0001-Only-export-symbols-starting-with-json_-and-jansson_.patch new file mode 100644 index 0000000000..30b30b8850 --- /dev/null +++ b/meta-oe/recipes-extended/jansson/jansson/0001-Only-export-symbols-starting-with-json_-and-jansson_.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From e5c38614fb7e0bdbcaec6db6133fa62cfed62818 Mon Sep 17 00:00:00 2001 | ||
2 | From: Jaeyoon Jung <jaeyoon.jung@lge.com> | ||
3 | Date: Wed, 15 Jan 2025 22:11:54 +0900 | ||
4 | Subject: [PATCH] Only export symbols starting with "json_" and "jansson_" for | ||
5 | cmake | ||
6 | |||
7 | It's already done by the commit 7c707a7 and bcb6b6f, but not for cmake. | ||
8 | This makes symbols in the same visibility as built with libtool. | ||
9 | |||
10 | Upstream-Status: Submitted [https://github.com/akheron/jansson/pull/704] | ||
11 | Signed-off-by: Jaeyoon Jung <jaeyoon.jung@lge.com> | ||
12 | --- | ||
13 | |||
14 | CMakeLists.txt | 3 +++ | ||
15 | 1 file changed, 3 insertions(+) | ||
16 | |||
17 | diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
18 | index 3394236..52b9934 100644 | ||
19 | --- a/CMakeLists.txt | ||
20 | +++ b/CMakeLists.txt | ||
21 | @@ -325,6 +325,9 @@ if(JANSSON_BUILD_SHARED_LIBS) | ||
22 | # some linkers may only support --version-script | ||
23 | file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/jansson.sym" "JANSSON_${JANSSON_SOVERSION} { | ||
24 | global: | ||
25 | + json_*; | ||
26 | + jansson_*; | ||
27 | + local: | ||
28 | *; | ||
29 | }; | ||
30 | ") | ||
diff --git a/meta-oe/recipes-extended/jansson/jansson_2.14.bb b/meta-oe/recipes-extended/jansson/jansson_2.14.bb index 9f5cdcf4c0..4ac30c4dba 100644 --- a/meta-oe/recipes-extended/jansson/jansson_2.14.bb +++ b/meta-oe/recipes-extended/jansson/jansson_2.14.bb | |||
@@ -8,6 +8,7 @@ SRC_URI = "https://github.com/akheron/${BPN}/releases/download/v${PV}/${BP}.tar. | |||
8 | file://0001-Fix-overwriting-linker-flags.patch \ | 8 | file://0001-Fix-overwriting-linker-flags.patch \ |
9 | file://0001-Honour-multilib-paths.patch \ | 9 | file://0001-Honour-multilib-paths.patch \ |
10 | file://0001-add-back-JSON_INTEGER_IS_LONG_LONG-for-cmake.patch \ | 10 | file://0001-add-back-JSON_INTEGER_IS_LONG_LONG-for-cmake.patch \ |
11 | file://0001-Only-export-symbols-starting-with-json_-and-jansson_.patch \ | ||
11 | " | 12 | " |
12 | SRC_URI[sha256sum] = "fba956f27c6ae56ce6dfd52fbf9d20254aad42821f74fa52f83957625294afb9" | 13 | SRC_URI[sha256sum] = "fba956f27c6ae56ce6dfd52fbf9d20254aad42821f74fa52f83957625294afb9" |
13 | 14 | ||