From a83f09f1fbdbb60cdc758e32df88a11c9779baf7 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Thu, 27 Oct 2022 08:53:39 +0200 Subject: [PATCH] configure: add -latomic lib for armv7l 32-bit arm require -latomic for 64-bit atomic variables handling Fixes failed run: https://github.com/CESNET/UltraGrid/actions/runs/3329756675 --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index a96631c76..6cb22279a 100644 --- a/configure.ac +++ b/configure.ac @@ -221,6 +221,10 @@ if test $target_cpu = x86_64 -o $target_cpu = i686 then ARCH=${ARCH--msse4.1} fi +if test $target_cpu = armv7l +then + LIBS="${LIBS:+$LIBS }-latomic" # needed for atomic_uint64_t +fi CFLAGS="$CFLAGS${ARCH+ $ARCH}" CXXFLAGS="$CXXFLAGS${ARCH+ $ARCH}" LDFLAGS="$LDFLAGS${ARCH+ $ARCH}"