ament.bbclass: Fix wrong suffix 'x86_64-linux-gnu' in native python module shared library
* Fix wrong suffix x86_64-linux-gnu in native python module shared library * Python native module shared library is cross-compiled for correct architecture but filename had an incorrect suffix 'x86_64-linux-gnu'. As per python_cmake_module, if PYTHON_SOABI environment variable is not defined, it'll query it from native's python sysconfig module. https://github.com/ros2/rosidl/blob/master/python_cmake_module/cmake/Modules/FindPythonExtra.cmake So adopt a solution similar to the one adopted below, where PYTHON_SOABI is set explicitly for our specific build. https://github.com/erlerobot/meta-ros2/blob/master/classes/ament.bbclass Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
parent
ebacf5e5c6
commit
45de857731
|
@ -22,7 +22,7 @@ ROS_BPN ?= "${@d.getVar('BPN', True).replace('-', '_')}"
|
|||
|
||||
S = "${WORKDIR}/git/${ROS_BPN}"
|
||||
|
||||
EXTRA_OECMAKE_append = " -DBUILD_TESTING=OFF"
|
||||
EXTRA_OECMAKE_append = " -DBUILD_TESTING=OFF -DPYTHON_SOABI=cpython-35m-${TUNE_ARCH}-${TARGET_OS}${ARMPKGSFX_EABI}"
|
||||
export AMENT_PREFIX_PATH="${STAGING_DIR_HOST}${prefix};${STAGING_DIR_NATIVE}${prefix}"
|
||||
|
||||
inherit cmake python3native
|
||||
|
|
Loading…
Reference in New Issue