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).
This commit is contained in:
Martin Pulec
2023-08-28 09:38:21 +02:00
parent 49c859b8c2
commit efe73aad41

View File

@@ -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