This file controls the actual build process.
If the BUILD file is not present in the spell, cast uses default_build:
attention: default_build is not the same in BUILD_API 1 as in the new BUILD_API 2 !! see Build Split How-To, Build_api_2, and Build split design doc.
default_build for BUILD_API 2:
OPTS="$OPTS --build=${BUILD}"
[[ $CROSS_INSTALL == on ]] && OPTS="$OPTS --host=${HOST}"
./configure --prefix=${INSTALL_ROOT}/usr \
--sysconfdir=${INSTALL_ROOT}/etc \
--localstatedir=${INSTALL_ROOT}/var \
--mandir=${INSTALL_ROOT}/usr/share/man \
--infodir=${INSTALL_ROOT}/usr/share/info \
$OPTS &&
makeTo add an option to ./configure, use this instead of copying the above and then adding the options:
WARNING: DO NOT UNDER ANY CIRCUMSTANCES USE OPTS IN CONJUNCTION WITH THE config_query API or as a persistent variable. OPTS is an internal sorcery variable which is autogenerated from dependency information, using it as a persistent variable is a direct contradiction with the intended purpose of persistent variables and WILL NOT WORK CORRECTLY. If you need to have a custom value for OPTS (beyond the auto-filled values from dependencies) use another persistent variable list <SPELLNAME>_OPTS. Then follow the instructions below.
OPTS="--option-1 --option-2 $OPTS" && default_build
or if the values are in a variable:
OPTS="$MY_CUSTOM_OPTS $OPTS" && default_build
default_build for BUILD_API 1 (obsolete! solely as a reference since BUILD_API 1 spells still exist! do not write new spells in BUILD_API 1, instead use BUILD_API 2):
(
[[ $CROSS_INSTALL == on ]] && OPTS="$OPTS --host=${HOST} --build=${BUILD}"
./configure --prefix=${INSTALL_ROOT}/usr \
--sysconfdir=${INSTALL_ROOT}/etc \
--localstatedir=${INSTALL_ROOT}/var \
--mandir=${INSTALL_ROOT}/usr/share/man \
--infodir=${INSTALL_ROOT}/usr/share/info \
$OPTS &&
make &&
prepare_install &&
make install
) > $C_FIFO 2>&1