diff options
author | Ned Ludd <solar@gentoo.org> | 2006-08-02 18:01:03 +0000 |
---|---|---|
committer | Ned Ludd <solar@gentoo.org> | 2006-08-02 18:01:03 +0000 |
commit | fce712a0cc869fb7e3104911dfdd6919d60d954f (patch) | |
tree | 1de640f427d2e929872ba36c12b3bc582ee0abc6 /eclass | |
parent | Stable on hppa (diff) | |
download | gentoo-2-fce712a0cc869fb7e3104911dfdd6919d60d954f.tar.gz gentoo-2-fce712a0cc869fb7e3104911dfdd6919d60d954f.tar.bz2 gentoo-2-fce712a0cc869fb7e3104911dfdd6919d60d954f.zip |
- do be stupid and die when c89/c99 do not exist
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain.eclass | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index f70c86b55e5c..a84bd9954ce8 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.298 2006/07/30 17:43:01 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.299 2006/08/02 18:01:03 solar Exp $ HOMEPAGE="http://gcc.gnu.org/" LICENSE="GPL-2 LGPL-2.1" @@ -880,7 +880,13 @@ gcc-compiler_pkg_postinst() { && mkdir -p "${ROOT}"/sbin 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" - cp "${ROOT}/${DATAPATH}"/c{89,99} "${ROOT}"/usr/sbin/ || die "installing c89/c99" + + # These don't seem to exist when using the -K option and a hardened compiler and probably other cases also. + for x in "${ROOT}/${DATAPATH}"/c{89,99} ; do + if [[ -e ${x} ]]; then + cp ${x} "${ROOT}"/usr/sbin/ || die "installing c89/c99" + fi + done fi } |