From b5ac11bcce35d31f6e1837a5bab61030e9127b41 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 15 Jan 2022 08:48:04 +0100 Subject: extra/tbb: added -latomic for i486 --- extra/tbb/PKGBUILD | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'extra/tbb') diff --git a/extra/tbb/PKGBUILD b/extra/tbb/PKGBUILD index fa2854cf..f2ff0000 100644 --- a/extra/tbb/PKGBUILD +++ b/extra/tbb/PKGBUILD @@ -12,3 +12,13 @@ eval "$( $i patch -p1 -i "$srcdir/oneTBB-2021.5.0-no-waitpkg.patch" ' )" + +# -latomic on i486 +if [ "$CARCH" == 'i486' ]; then + eval "$( + declare -f build | \ + sed ' + s/cmake /cmake -DCMAKE_CXX_STANDARD_LIBRARIES=-latomic / + ' + )" +fi -- cgit v1.2.3-70-g09d2