Date: Tue, 18 May 2021 17:49:42 GMT From: Piotr Kubaj <pkubaj@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 26db8f6e8bda - main - audio/spectacle-lv2: fix build on powerpc64* Message-ID: <202105181749.14IHngwH091137@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=26db8f6e8bda5cf8778a18ed3e0b06d7c7d70150 commit 26db8f6e8bda5cf8778a18ed3e0b06d7c7d70150 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2021-05-18 17:50:12 +0000 Commit: Piotr Kubaj <pkubaj@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105181749.14IHngwH091137>