From 61d07f1ef20b19023e0f597575719cdaed88c983 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 25 Aug 2024 10:39:05 +0200 Subject: extra/abseil-cpp: fixed for -latomic and failing tests on i486 --- extra/abseil-cpp/PKGBUILD | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/extra/abseil-cpp/PKGBUILD b/extra/abseil-cpp/PKGBUILD index b5c9ca6b..b81a17fb 100644 --- a/extra/abseil-cpp/PKGBUILD +++ b/extra/abseil-cpp/PKGBUILD @@ -1,3 +1,18 @@ # Tests are flaky - eval "$(declare -f check | sed 's/ctest/ctest || true/')" + +# Test cause OOM on u486 +if [ "$CARCH" = 'i486' ]; then + unset check + unset checkdepends +fi + +# libatomic for i486 +if [ "$CARCH" = "i486" ]; then + eval "$( + declare -f build | \ + sed ' + 3 i export LDFLAGS=-latomic + ' + )" +fi -- cgit v1.2.3-70-g09d2