我需要将C ++软件交叉编译为在嵌入式Vortex86DX处理器上运行的旧GNU / Linux 2.0.0架构。
我从这个硬件的本机可执行文件中获取了该信息:
$ file testio
testio: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.0.0, not stripped
在这种情况下,工具链配置是什么?
# the name of the target operating system
set(CMAKE_SYSTEM_NAME Linux)
# Which compilers to use for C and C++
set(CMAKE_C_COMPILER ${CMAKE_SOURCE_DIR}/bin/???)
set(CMAKE_CXX_COMPILER ${CMAKE_SOURCE_DIR}/bin/???)
我正在运行安装了gcc-multilib的Ubuntu 15.10。