From bcfbba40f4371bc6e827492d85750613f45be2f5 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Wed, 16 Aug 2017 18:07:14 +0200 Subject: [PATCH] build-style/cmake.sh: $CC and $CXX are good enough for cross-compiling. --- common/build-style/cmake.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/build-style/cmake.sh b/common/build-style/cmake.sh index 7cb2542c6fb..0b807c2a347 100644 --- a/common/build-style/cmake.sh +++ b/common/build-style/cmake.sh @@ -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})