Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-10-15 15:05:10 +0200
committerErich Eckner <git@eckner.net>2018-10-15 15:05:10 +0200
commit18ecbeab37af03e1a87ff93cc2e7fdf24739a5c0 (patch)
treee95c9f399e5d5db94966fab5456e912b01d253d9
parentb233246a4e7bb7a2ac9c1f95478e70ae91fe0817 (diff)
extra/mono: really fix i486 atomics ...
-rw-r--r--extra/mono/PKGBUILD9
1 files changed, 5 insertions, 4 deletions
diff --git a/extra/mono/PKGBUILD b/extra/mono/PKGBUILD
index bccd03b7..7cf3826b 100644
--- a/extra/mono/PKGBUILD
+++ b/extra/mono/PKGBUILD
@@ -5,10 +5,11 @@ if [ "$CARCH" = 'i486' ]; then
sed '
/^}$/ i \
sed -i '"'"' \
- /#define BROKEN_64BIT_ATOMICS_INTRINSIC 1/ i \\\
- #endif \\\
- #if true \
- '"'"' mono/utils/atomic.h
+ /#define BROKEN_64BIT_ATOMICS_INTRINSIC 1/ { \
+ N \
+ s/\\(.*\\)\\n\\s*#endif/#endif\\n\\1/ \
+ } \
+ '"'"' mono/utils/atomic.h
'
)"
fi