|
|
if [ ! -z "${CBUILD}" ]; then | if [ ! -z "${CBUILD}" ]; then |
EXTRA_ECONF="--build=${CBUILD} ${EXTRA_ECONF}" | EXTRA_ECONF="--build=${CBUILD} ${EXTRA_ECONF}" |
fi | fi |
$CONFIGURE_CMD ./configure \ |
./configure \ |
--prefix=/usr \ | --prefix=/usr \ |
--host=${CHOST} \ | --host=${CHOST} \ |
--mandir=/usr/share/man \ | --mandir=/usr/share/man \ |
|
|
export USER=portage | export USER=portage |
fi | fi |
| |
# GRC support for fun colorized builds and configures! |
|
if has grc ${FEATURES} &>/dev/null; then |
|
if [ -f /usr/bin/grc ]; then |
|
CONFIGURE_CMD=${CONFIGURE_CMD//grc /""} |
|
MAKE_CMD=${MAKE_CMD//grc /""} |
|
export CONFIGURE_CMD="grc $CONFIGURE_CMD" |
|
export MAKE_CMD="grc $MAKE_CMD" |
|
fi |
|
fi |
|
|
|
if has distcc ${FEATURES} &>/dev/null; then | if has distcc ${FEATURES} &>/dev/null; then |
if [ -d /usr/lib/distcc/bin ]; then | if [ -d /usr/lib/distcc/bin ]; then |
#We can enable distributed compile support | #We can enable distributed compile support |
|
|
export CXX="distcc $CXX" | export CXX="distcc $CXX" |
fi | fi |
fi | fi |
|
|
if has ccache ${FEATURES} &>/dev/null; then | if has ccache ${FEATURES} &>/dev/null; then |
#We can enable compiler cache support | #We can enable compiler cache support |
if [ -z "${PATH/*ccache*/}" ]; then | if [ -z "${PATH/*ccache*/}" ]; then |