aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2024-02-21 23:22:56 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2024-02-22 06:17:33 +0000
commit62154d135f6554edd7fab5baf210b5d6bd3204b7 (patch)
treeb45f36772601201826f3b829e013ac8ca8d54185
parent535951677e4aabfe138d41907019f08c2fdc9a2f (diff)
downloadports-62154d135f6554edd7fab5baf210b5d6bd3204b7.tar.gz
ports-62154d135f6554edd7fab5baf210b5d6bd3204b7.zip
devel/boost-libs: fix build on powerpc* due to wrong assembly syntax error
-rw-r--r--devel/boost-libs/files/patch-boost_fiber_detail_cpu__relax.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/devel/boost-libs/files/patch-boost_fiber_detail_cpu__relax.hpp b/devel/boost-libs/files/patch-boost_fiber_detail_cpu__relax.hpp
new file mode 100644
index 000000000000..a089a9123a56
--- /dev/null
+++ b/devel/boost-libs/files/patch-boost_fiber_detail_cpu__relax.hpp
@@ -0,0 +1,11 @@
+--- boost/fiber/detail/cpu_relax.hpp.orig 2024-02-21 21:22:18 UTC
++++ boost/fiber/detail/cpu_relax.hpp
+@@ -59,7 +59,7 @@ namespace detail {
+ // processors
+ // extended mnemonics (available with POWER7)
+ // yield == or 27, 27, 27
+-# if defined(__POWERPC__) // Darwin PPC
++# if defined(__APPLE__) // Darwin PPC
+ # define cpu_relax() asm volatile ("or r27,r27,r27" ::: "memory");
+ # else
+ # define cpu_relax() asm volatile ("or 27,27,27" ::: "memory");