mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-11 07:10:36 +00:00
Merge pull request #1848 from majestrate/fixup-2022-02-02
fixup cross targets
This commit is contained in:
commit
fbb0ed8245
@ -253,6 +253,12 @@ if(CMAKE_CROSSCOMPILING)
|
|||||||
elseif(ARCH_TRIPLET STREQUAL aarch64-linux-gnu)
|
elseif(ARCH_TRIPLET STREQUAL aarch64-linux-gnu)
|
||||||
# cross compile arm64
|
# cross compile arm64
|
||||||
set(openssl_system_env SYSTEM=Linux MACHINE=aarch64)
|
set(openssl_system_env SYSTEM=Linux MACHINE=aarch64)
|
||||||
|
elseif(ARCH_TRIPLET MATCHES arm-linux)
|
||||||
|
# cross compile armhf
|
||||||
|
set(openssl_system_env SYSTEM=Linux MACHINE=armv4)
|
||||||
|
elseif(ARCH_TRIPLET MATCHES powerpc64le)
|
||||||
|
# cross compile ppc64le
|
||||||
|
set(openssl_system_env SYSTEM=Linux MACHINE=ppc64le)
|
||||||
endif()
|
endif()
|
||||||
elseif(CMAKE_C_FLAGS MATCHES "-march=armv7")
|
elseif(CMAKE_C_FLAGS MATCHES "-march=armv7")
|
||||||
# Help openssl figure out that we're building from armv7 even if on armv8 hardware:
|
# Help openssl figure out that we're building from armv7 even if on armv8 hardware:
|
||||||
|
@ -10,3 +10,4 @@ set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
|||||||
|
|
||||||
set(CMAKE_C_COMPILER ${TOOLCHAIN_PREFIX}-gcc${TOOLCHAIN_SUFFIX})
|
set(CMAKE_C_COMPILER ${TOOLCHAIN_PREFIX}-gcc${TOOLCHAIN_SUFFIX})
|
||||||
set(CMAKE_CXX_COMPILER ${TOOLCHAIN_PREFIX}-g++${TOOLCHAIN_SUFFIX})
|
set(CMAKE_CXX_COMPILER ${TOOLCHAIN_PREFIX}-g++${TOOLCHAIN_SUFFIX})
|
||||||
|
set(ARCH_TRIPLET ${TOOLCHAIN_PREFIX})
|
||||||
|
@ -10,3 +10,4 @@ set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
|||||||
|
|
||||||
set(CMAKE_C_COMPILER ${TOOLCHAIN_PREFIX}-gcc${TOOLCHAIN_SUFFIX})
|
set(CMAKE_C_COMPILER ${TOOLCHAIN_PREFIX}-gcc${TOOLCHAIN_SUFFIX})
|
||||||
set(CMAKE_CXX_COMPILER ${TOOLCHAIN_PREFIX}-g++${TOOLCHAIN_SUFFIX})
|
set(CMAKE_CXX_COMPILER ${TOOLCHAIN_PREFIX}-g++${TOOLCHAIN_SUFFIX})
|
||||||
|
set(ARCH_TRIPLET ${TOOLCHAIN_PREFIX})
|
||||||
|
Loading…
Reference in New Issue
Block a user