make-kit-crosscompile at [8efaf47298]

File build/make-kit-crosscompile artifact 36d16f76ac part of check-in 8efaf47298


#! /bin/bash

if [ -z "${CROSS}" ]; then
	echo 'Error: Environment variable CROSS is empty/unset.  Aborting.' >&2

	exit 1
fi

PATH="$(pwd)/build/fake-bin:${HOME}/root/cross-compilers/${CROSS}/${CROSS}/bin:${PATH}:${HOME}/root/cross-compilers/${CROSS}/bin"
AR="${CROSS}-ar"
CC="${CROSS}-gcc ${CC_ADD}"
CXX="${CROSS}-g++ ${CC_ADD}"
RANLIB="${CROSS}-ranlib"
STRIP="${CROSS}-strip"
export PATH AR CC CXX RANLIB STRIP

./kitcreator "$@" --host="${CROSS}"