From efe73aad413d4e910a9a168d35a05c4ee0afdbad Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Mon, 28 Aug 2023 09:38:21 +0200 Subject: [PATCH] configure.ac: incl -latomic on 32b aarch64 builds \-latomic is needed to prevent errors: ``` undefined reference to `__atomic_load_8' ```` even if target_cpu is aarch64 but building on 32-bit Raspberry Pi OS (which is still default). --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index b462368ef..06c6179c6 100644 --- a/configure.ac +++ b/configure.ac @@ -208,7 +208,8 @@ if test $target_cpu = x86_64 -o $target_cpu = i686 then ARCH=${ARCH--msse4.1} fi -if test $target_cpu = armv7l +if test $target_cpu = armv7l || { test $target_cpu = aarch64 && \ +test $ac_cv_sizeof_int_p -eq 4; } then LIBS="${LIBS:+$LIBS }-latomic" # needed for atomic_uint64_t fi