#!/bin/bash # # Scrip to invoke distcc with the right CBUILD, needed for plain gcc/g++/c++ # invocations to get the right compiler on distcc hosts when mixing hosts. # # Replace the c++, g++ and gcc links in /usr/lib/distcc/bin with links to # this scrip and have full distcc cross-compile support for all ebuilds. # # Copyright 2005 Sven Wegener # Distributed under the terms of the GNU General Public License v2 # # $Id: distcc-cbuild 118 2005-07-29 12:40:21Z sven $ # BIN="${0##*/}" [[ -n "${CBUILD}" ]] && BIN="${CBUILD}-${BIN}" exec -a "${BIN}" /usr/bin/distcc "${@}"