SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_SYSTEM_PROCESSOR i686)
SET(CMAKE_SYSTEM_VERSION 1)

SET(CMAKE_C_COMPILER ${MASON_XC_ROOT}/root/bin/i686-pc-linux-gnu-gcc)
SET(CMAKE_CXX_COMPILER ${MASON_XC_ROOT}/root/bin/i686-pc-linux-gnu-g++)
SET(CMAKE_RANLIB ${MASON_XC_ROOT}/root/bin/i686-pc-linux-gnu-ranlib)

SET(CMAKE_C_FLAGS "-mtune=i686 -march=i686 ${CFLAGS}")
SET(CMAKE_CXX_FLAGS "-mtune=i686 -march=i686 ${CFLAGS}")

SET(CMAKE_FIND_ROOT_PATH ${MASON_XC_ROOT}/root)

SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
