python3-posix-ipc: Add librt linking to enable message queue support

The posix_ipc module was being built without message queue support due to
missing linkage with the real-time library (librt) during cross-compilation.
This caused the MessageQueue class to be unavailable at runtime.

Add LDFLAGS += -lrt to ensure proper linking and enable full POSIX IPC
functionality including message queues.

Fixes: #916
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
jacobpanov
2025-07-10 17:36:38 -04:00
committed by Khem Raj
parent 54035a19b3
commit 37a20d637b

View File

@@ -14,4 +14,8 @@ SRC_URI += " \
file://0002-build_support-handle-empty-max_priority-value-as-Non.patch \
file://0003-build_support-use-does_build_succeed-in-compile_and_.patch \
"
# Message queue support requires librt for proper linking
LDFLAGS += "-lrt"
inherit pypi python_setuptools_build_meta