The configuration behavior can be controlled by setting particular environment variables.
The following variables should always be defined. (The examples are in Bourne shell syntax.)
CROSS_COMPILE
This is sometimes used by configure scripts to detect a cross development environment. For example:
export CROSS_COMPILE=1It variable is not needed by configure scripts generated by autoconf 2.5 or later.
CC and CXX
These are used to define the C and C++ compiler commands.
For the ST40 cross development environment they are usually sh4-linux-gcc and sh4-linux-g++ respectively. For example:
export CC="sh4-linux-gcc" export CXX="sh4-linux-g++"
Other environment variables may be needed, depending on the particular package being built.