From: Mike Frysinger Date: Fri, 16 Jun 2006 03:52:32 +0000 (+0000) Subject: dont try to install fixlafiles.awk/fix_libtool_files.sh when cross-compiling #136599 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4f3dfbaac3363bb040d1f7b5fe000c1e82b8e638;p=gentoo.git dont try to install fixlafiles.awk/fix_libtool_files.sh when cross-compiling #136599 --- diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 0c1650796af9..a17c383bc308 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.291 2006/06/12 01:06:03 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.292 2006/06/16 03:52:32 vapier Exp $ HOMEPAGE="http://gcc.gnu.org/" LICENSE="GPL-2 LGPL-2.1" @@ -871,9 +871,11 @@ gcc-compiler_pkg_postinst() { echo fi - # hack to prevent collisions between SLOT - cp "${ROOT}/${DATAPATH}"/fixlafiles.awk "${ROOT}"/lib/rcscripts/awk/ || die "installing fixlafiles.awk" - cp "${ROOT}/${DATAPATH}"/fix_libtool_files.sh "${ROOT}"/sbin/ || die "installing fix_libtool_files.sh" + if ! is_crosscompile ; then + # hack to prevent collisions between SLOT + cp "${ROOT}/${DATAPATH}"/fixlafiles.awk "${ROOT}"/lib/rcscripts/awk/ || die "installing fixlafiles.awk" + cp "${ROOT}/${DATAPATH}"/fix_libtool_files.sh "${ROOT}"/sbin/ || die "installing fix_libtool_files.sh" + fi } gcc-compiler_pkg_prerm() {