git: 26db8f6e8bda - main - audio/spectacle-lv2: fix build on powerpc64*
Piotr Kubaj
pkubaj at FreeBSD.org
Tue May 18 17:49:43 UTC 2021
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=26db8f6e8bda5cf8778a18ed3e0b06d7c7d70150
commit 26db8f6e8bda5cf8778a18ed3e0b06d7c7d70150
Author: Piotr Kubaj <pkubaj at FreeBSD.org>
AuthorDate: 2021-05-18 17:50:12 +0000
Commit: Piotr Kubaj <pkubaj at FreeBSD.org>
CommitDate: 2021-05-18 17:50:12 +0000
audio/spectacle-lv2: fix build on powerpc64*
ori 0,0,0 is the noop instruction on powerpc64*.
---
.../files/patch-thirdparty_spin__mutex_src_SpinLoopPause.h | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/audio/spectacle-lv2/files/patch-thirdparty_spin__mutex_src_SpinLoopPause.h b/audio/spectacle-lv2/files/patch-thirdparty_spin__mutex_src_SpinLoopPause.h
new file mode 100644
index 000000000000..3c34a14e9143
--- /dev/null
+++ b/audio/spectacle-lv2/files/patch-thirdparty_spin__mutex_src_SpinLoopPause.h
@@ -0,0 +1,13 @@
+--- thirdparty/spin_mutex/src/SpinLoopPause.h.orig 2021-05-18 17:31:07 UTC
++++ thirdparty/spin_mutex/src/SpinLoopPause.h
+@@ -32,6 +32,10 @@ static inline void spin_loop_pause() noexcept {
+ asm volatile ("nop" ::: "memory");
+ #endif
+ }
++#elif defined(__powerpc64__)
++static inline void spin_loop_pause() noexcept {
++ asm volatile("ori 0,0,0" ::: "memory");
++}
+ #else
+ #error "Unknown CPU architecture."
+ #endif
More information about the dev-commits-ports-all
mailing list