mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-11-15 04:17:29 +00:00
hiawatha uses __atomic_store_n()/__atomic_load_n() on time_t values. On riscv32, where time_t is 64-bit but there are no 64-bit atomic instructions, these become __atomic_*_8 libcalls, and linking fails: ld.lld: error: undefined symbol: __atomic_store_8 Add a patch that checks in CMake whether atomic operations on a time_t need libatomic and links hiawatha with it only in that case. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>