From b0aefd8798e906ff78e41f6f0d1d086993a09893 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 25 Oct 2023 11:16:46 +0800 Subject: add atomic link for linux/arm --- core/xmake.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/xmake.sh b/core/xmake.sh index 9e5b07b7a..f36f92dd7 100755 --- a/core/xmake.sh +++ b/core/xmake.sh @@ -196,6 +196,9 @@ option_find_tbox() { fi add_cflags "${cflags}" add_ldflags "${ldflags}" + if is_plat "linux" && is_arch "armv7"; then + add_ldflags "-latomic" + fi option_end } -- cgit v1.3.1