From b233246a4e7bb7a2ac9c1f95478e70ae91fe0817 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 15 Oct 2018 14:46:55 +0200 Subject: extra/mono: disable atomics on i486 --- extra/mono/PKGBUILD | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 extra/mono/PKGBUILD (limited to 'extra') diff --git a/extra/mono/PKGBUILD b/extra/mono/PKGBUILD new file mode 100644 index 00000000..bccd03b7 --- /dev/null +++ b/extra/mono/PKGBUILD @@ -0,0 +1,14 @@ +if [ "$CARCH" = 'i486' ]; then + # these atomics are unavailable on i486, but that is not detected (?) + eval "$( + declare -f prepare | \ + sed ' + /^}$/ i \ + sed -i '"'"' \ + /#define BROKEN_64BIT_ATOMICS_INTRINSIC 1/ i \\\ + #endif \\\ + #if true \ + '"'"' mono/utils/atomic.h + ' + )" +fi -- cgit v1.2.3-70-g09d2