summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-10-25 11:16:46 +0800
committerruki <[email protected]>2023-10-25 11:16:46 +0800
commitb0aefd8798e906ff78e41f6f0d1d086993a09893 (patch)
tree36b5d1863c9bf3f838d8a33c67e579d824d2146e
parentecae2ad7455094fc72ae9abfe8e8a226130fe570 (diff)
add atomic link for linux/arm
-rwxr-xr-xcore/xmake.sh3
1 files changed, 3 insertions, 0 deletions
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
}