[m-c-s][hardknott][PATCH] python3-posix-ipc: Add LDSHARED to recipe


Trevor Gamblin
 

Doing "import posix_ipc" on hardknott builds gives the following error:

ImportError: /usr/lib/python3.9/site-packages/posix_ipc.cpython-39-x86_64-linux-gnu.so: undefined symbol: shm_unlink

Set LDSHARED for the recipe with "-lrt" included to fix this.

Signed-off-by: Trevor Gamblin <trevor.gamblin@...>
---
.../recipes-devtools/python/python3-posix-ipc_1.0.4.bb | 2 ++
1 file changed, 2 insertions(+)

diff --git a/meta-openstack/recipes-devtools/python/python3-posix-ipc_1.0.4.bb b/meta-openstack/recipes-devtools/python/python3-posix-ipc_1.0.4.bb
index 2e8dca06..cded499d 100644
--- a/meta-openstack/recipes-devtools/python/python3-posix-ipc_1.0.4.bb
+++ b/meta-openstack/recipes-devtools/python/python3-posix-ipc_1.0.4.bb
@@ -20,6 +20,8 @@ DEPENDS += " \
${PYTHON_PN}-pip \
"

+LDSHARED="${CCLD} -shared -lrt"
+
# RDEPENDS_default:
RDEPENDS_${PN} += " \
"
--
2.33.0

Join meta-virtualization@lists.yoctoproject.org to automatically receive all group messages.