summaryrefslogtreecommitdiff
path: root/extra/mono/PKGBUILD
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-10-15 14:46:55 +0200
committerErich Eckner <git@eckner.net>2018-10-15 14:46:55 +0200
commitb233246a4e7bb7a2ac9c1f95478e70ae91fe0817 (patch)
treec2b47b8b85e35959d8c3db8807f87c6de11ff4d2 /extra/mono/PKGBUILD
parent6f58ad32e05024b7f70435ccf9912308c2163271 (diff)
downloadpackages-b233246a4e7bb7a2ac9c1f95478e70ae91fe0817.tar.xz
extra/mono: disable atomics on i486
Diffstat (limited to 'extra/mono/PKGBUILD')
-rw-r--r--extra/mono/PKGBUILD14
1 files changed, 14 insertions, 0 deletions
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