diff --git a/recipes/boost/all/conandata.yml b/recipes/boost/all/conandata.yml index 15e2110a5ec671..c4f878a1770dc0 100644 --- a/recipes/boost/all/conandata.yml +++ b/recipes/boost/all/conandata.yml @@ -276,3 +276,5 @@ patches: base_path: "source_subfolder" - patch_file: "patches/1.79.0-0001-json-array-erase-relocate.patch" base_path: "source_subfolder" + - patch_file: "patches/1.79.0-smart_ptr_cw_ppc_msync.patch" + base_path: "source_subfolder" diff --git a/recipes/boost/all/patches/1.79.0-smart_ptr_cw_ppc_msync.patch b/recipes/boost/all/patches/1.79.0-smart_ptr_cw_ppc_msync.patch new file mode 100644 index 00000000000000..61770f8c8863f6 --- /dev/null +++ b/recipes/boost/all/patches/1.79.0-smart_ptr_cw_ppc_msync.patch @@ -0,0 +1,25 @@ +diff --git a/boost/smart_ptr/detail/sp_counted_base_cw_ppc.hpp b/boost/smart_ptr/detail/sp_counted_base_cw_ppc.hpp +index 81387ce..58a69e6 100644 +--- a/boost/smart_ptr/detail/sp_counted_base_cw_ppc.hpp ++++ b/boost/smart_ptr/detail/sp_counted_base_cw_ppc.hpp +@@ -35,8 +35,6 @@ BOOST_PRAGMA_MESSAGE("Using CodeWarrior/PowerPC sp_counted_base") + + #endif + +-BOOST_SP_OBSOLETE() +- + namespace boost + { + +@@ -64,7 +62,11 @@ inline long atomic_decrement( register long * pw ) + + asm + { ++#if defined(__PPCZen__) || defined(__PPCe500__) || defined(__PPCe500v2__) ++ msync ++#else + sync ++#endif + + loop: +