crosstools-ng based linux build env

This commit is contained in:
BtbN 2021-05-14 01:52:34 +02:00
parent 3e64643b8c
commit bd36724a09
8 changed files with 992 additions and 66 deletions

View file

@ -1,11 +1,15 @@
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR x86_64)
set(CMAKE_C_COMPILER x86_64-alpine-linux-musl-gcc)
set(CMAKE_CXX_COMPILER x86_64-alpine-linux-musl-g++)
set(CMAKE_RANLIB ranlib)
set(triple x86_64-ffbuild-linux-gnu)
set(CMAKE_FIND_ROOT_PATH /usr/x86_64-alpine-linux-musl /opt/ffbuild)
set(CMAKE_C_COMPILER ${triple}-gcc)
set(CMAKE_CXX_COMPILER ${triple}-g++)
set(CMAKE_RANLIB ${triple}-ranlib)
set(CMAKE_AR ${triple}-ar)
set(CMAKE_SYSROOT /opt/ct-ng/${triple}/sysroot)
set(CMAKE_FIND_ROOT_PATH /opt/ct-ng /opt/ct-ng/${triple}/sysroot /opt/ffbuild)
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)