| # Copyright 1999-2007 Gentoo Foundation |
# Copyright 1999-2008 Gentoo Foundation |
| # Distributed under the terms of the GNU General Public License v2 |
# Distributed under the terms of the GNU General Public License v2 |
| # $Header$ |
# $Header$ |
| |
|
| epatch "${GCC_FILESDIR}"/4.1.0/gcc-4.1.0-cross-compile.patch |
epatch "${GCC_FILESDIR}"/4.1.0/gcc-4.1.0-cross-compile.patch |
| } |
} |
| |
|
| src_install() { |
pkg_postinst() { |
| toolchain_src_install |
cd "${ROOT}"/usr/bin |
| |
|
| local x |
local x |
| for x in gcc cpp ; do |
for x in gcc cpp ; do |
| newbin "${FILESDIR}"/wrapper ${CTARGET%%-*}-linux-${x} |
cat <<-EOF >${CTARGET%%-*}-linux-${x} |
| dosed "s:TARGET:${CTARGET}-${x}:" /usr/bin/${CTARGET%%-*}-linux-${x} |
#!/bin/sh |
| |
exec ${CTARGET}-${x} "\$@" |
| |
EOF |
| |
chmod a+rx ${CTARGET%%-*}-linux-${x} |
| done |
done |
| } |
} |