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})