From 04064072137649baa8c7d0de140509456b74b8fb Mon Sep 17 00:00:00 2001 From: lazymio Date: Fri, 29 Dec 2023 00:55:32 +0800 Subject: [PATCH] Told QEMU configure to use atomic --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index fb2d9934..b92435a8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -289,6 +289,9 @@ else() if(UNICORN_TRACER) set (EXTRA_CFLAGS "${EXTRA_CFLAGS} -DUNICORN_TRACER") endif() + if (ATOMIC_LINKAGE_FIX) + set (EXTRA_CFLAGS "${EXTRA_CFLAGS} -latomic") + endif() set(TARGET_LIST "--target-list=") if(UNICORN_HAS_X86)