new file mode 100644
@@ -0,0 +1,72 @@
+From fad27221925d71bcbcbffea9787abdd80351c5c5 Mon Sep 17 00:00:00 2001
+From: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
+Date: Wed, 22 Feb 2023 03:05:08 +0100
+Subject: [PATCH] grPyBind: fix invalid suffix when cross-compile
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+This is required as pybind11 uses host python3 and therefore the host platform
+suffixes.
+
+By default, module libraries have a suffix based on cpython version + host
+architecture: this is fine for a native compile when these libraries are used
+on the same computer (or similar computers). But when target architecture is
+not the same python is unable to find libraries due to the wrong suffix and
+produces unclear errors messages.
+This patch, when CMAKE_CROSSCOMPILING is set, force libraries suffix extension
+to resolve this runtime issue.
+
+Signed-off-by: Martin Böh <contact@martb.dev>
+Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
+[Upstream status: https://github.com/gnuradio/gnuradio/pull/6727]
+---
+ cmake/Modules/GrPybind.cmake | 18 ++++++++++++++++++
+ 1 file changed, 18 insertions(+)
+
+diff --git a/cmake/Modules/GrPybind.cmake b/cmake/Modules/GrPybind.cmake
+index 5a6fb7633..c2df17c2d 100644
+--- a/cmake/Modules/GrPybind.cmake
++++ b/cmake/Modules/GrPybind.cmake
+@@ -8,6 +8,12 @@ macro(GR_PYBIND_MAKE name updir filter files)
+ ${CMAKE_CURRENT_BINARY_DIR} COPYONLY)
+
+ pybind11_add_module(${name}_python ${files})
++
++ # Use normal .so suffix when crosscompiling
++ # See https://github.com/gnuradio/gnuradio/issues/5455
++ if (CMAKE_CROSSCOMPILING)
++ set_target_properties(${name}_python PROPERTIES SUFFIX ".so")
++ endif()
+
+ set(MODULE_NAME ${name})
+ if(${name} STREQUAL gr)
+@@ -135,6 +141,12 @@ macro(GR_PYBIND_MAKE_CHECK_HASH name updir filter files)
+
+ pybind11_add_module(${name}_python ${files})
+
++ # Use normal .so suffix when crosscompiling
++ # See https://github.com/gnuradio/gnuradio/issues/5455
++ if (CMAKE_CROSSCOMPILING)
++ set_target_properties(${name}_python PROPERTIES SUFFIX ".so")
++ endif()
++
+ set(MODULE_NAME ${name})
+ if(${name} STREQUAL gr)
+ set(MODULE_NAME "runtime")
+@@ -286,6 +298,12 @@ macro(GR_PYBIND_MAKE_OOT name updir filter files)
+
+ pybind11_add_module(${name}_python ${files})
+
++ # Use normal .so suffix when crosscompiling
++ # See https://github.com/gnuradio/gnuradio/issues/5455
++ if (CMAKE_CROSSCOMPILING)
++ set_target_properties(${name}_python PROPERTIES SUFFIX ".so")
++ endif()
++
+ set(MODULE_NAME ${name})
+ if(${name} STREQUAL gr)
+ set(MODULE_NAME "runtime")
+--
+2.39.3
+