build-style/cmake.sh: $CC and $CXX are good enough for cross-compiling.

This commit is contained in:
Leah Neukirchen 2017-08-16 18:07:14 +02:00
parent d0bfcea683
commit bcfbba40f4

View File

@ -11,8 +11,8 @@ do_configure() {
SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_SYSTEM_VERSION 1)
SET(CMAKE_C_COMPILER ${XBPS_CROSS_TRIPLET}-gcc)
SET(CMAKE_CXX_COMPILER ${XBPS_CROSS_TRIPLET}-g++)
SET(CMAKE_C_COMPILER ${CC})
SET(CMAKE_CXX_COMPILER ${CXX})
SET(CMAKE_CROSSCOMPILING TRUE)
SET(CMAKE_FIND_ROOT_PATH ${XBPS_CROSS_BASE})