From e776749fd0917de9f488b2d4b5c283f8d9b5c261 Mon Sep 17 00:00:00 2001 From: Emerson Knapp Date: Tue, 21 Jul 2020 12:21:26 -0700 Subject: [PATCH] Trying out some stuff with the toolchain extra variables Signed-off-by: Emerson Knapp --- ros_cross_compile/toolchains/aarch64-gnu.cmake | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ros_cross_compile/toolchains/aarch64-gnu.cmake b/ros_cross_compile/toolchains/aarch64-gnu.cmake index f556a08f..d6198c6e 100644 --- a/ros_cross_compile/toolchains/aarch64-gnu.cmake +++ b/ros_cross_compile/toolchains/aarch64-gnu.cmake @@ -3,8 +3,6 @@ set(TRIPLE aarch64-linux-gnu) set(PY_VERSION 38) set(CMAKE_SYSTEM_PROCESSOR aarch64) - - # Generic function(require_env name) if("$ENV{${name}}" STREQUAL "") @@ -18,6 +16,7 @@ require_env(ROS_DISTRO) set(CMAKE_SYSTEM_NAME Linux) SET(CMAKE_SYSTEM_VERSION 1) +set(CMAKE_LIBRARY_ARCHITECTURE ${TRIPLE}) set(CMAKE_C_COMPILER /usr/bin/${TRIPLE}-gcc) set(CMAKE_CXX_COMPILER /usr/bin/${TRIPLE}-g++) @@ -31,6 +30,8 @@ set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) - set(PYTHON_SOABI cpython-${PY_VERSION}m-${TRIPLE}) set(THREADS_PTHREAD_ARG "0" CACHE STRING "Result from TRY_RUN" FORCE) + +set(CMAKE_CROSSCOMPILING 1) +set(CMAKE_CROSSCOMPILING_EMULATOR /usr/bin/qemu-aarch64-static)