From 36078c0a7472c6246f45389daa267cbb8c0f35c8 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 7 May 2022 08:01:57 +0200 Subject: extra/compiler-rt: added -latomic on 486 --- extra/compiler-rt/PKGBUILD | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 extra/compiler-rt/PKGBUILD (limited to 'extra/compiler-rt/PKGBUILD') diff --git a/extra/compiler-rt/PKGBUILD b/extra/compiler-rt/PKGBUILD new file mode 100644 index 00000000..b7692845 --- /dev/null +++ b/extra/compiler-rt/PKGBUILD @@ -0,0 +1,9 @@ +# i486 needs atomic libraries when linking +if [ "$CARCH" = 'i486' ]; then + eval "$( + declare -f build | \ + sed ' + s/cmake /cmake -DCMAKE_CXX_STANDARD_LIBRARIES=-latomic / + ' + )" +fi -- cgit v1.2.3-70-g09d2