Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/mono/PKGBUILD
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-01-21 10:03:23 +0100
committerErich Eckner <git@eckner.net>2019-01-21 10:03:23 +0100
commitc2b2f00057bd52e54fcdc4ff92f8421e651ce815 (patch)
treee40e3db6f4c572f168da90e5b80127d5f29fa224 /extra/mono/PKGBUILD
parent7f1e3da67e8b6bbc45c85937d4938547f32076d6 (diff)
parent75b2223f9e8b10faaef8f4f819c142eac8dacb93 (diff)
Merge branch 'master' into i486
Diffstat (limited to 'extra/mono/PKGBUILD')
-rw-r--r--extra/mono/PKGBUILD15
1 files changed, 15 insertions, 0 deletions
diff --git a/extra/mono/PKGBUILD b/extra/mono/PKGBUILD
new file mode 100644
index 00000000..7cf3826b
--- /dev/null
+++ b/extra/mono/PKGBUILD
@@ -0,0 +1,15 @@
+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/ { \
+ N \
+ s/\\(.*\\)\\n\\s*#endif/#endif\\n\\1/ \
+ } \
+ '"'"' mono/utils/atomic.h
+ '
+ )"
+fi