diff options
author | Travis Tilley <lv@gentoo.org> | 2004-10-03 22:11:40 +0000 |
---|---|---|
committer | Travis Tilley <lv@gentoo.org> | 2004-10-03 22:11:40 +0000 |
commit | 58e7b6d162597d5b0a8a39e150effd3d1b9ae4ec (patch) | |
tree | 02d69585b7f66554280b327d0833bfbd204048cf | |
parent | Fixed header. (diff) | |
download | historical-58e7b6d162597d5b0a8a39e150effd3d1b9ae4ec.tar.gz historical-58e7b6d162597d5b0a8a39e150effd3d1b9ae4ec.tar.bz2 historical-58e7b6d162597d5b0a8a39e150effd3d1b9ae4ec.zip |
made env script function more flexible just in case we get more than just 3 specs files at some point in the future...
-rw-r--r-- | eclass/toolchain.eclass | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 23219f858515..8f4b992a2f81 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.21 2004/10/03 19:44:59 lv Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.22 2004/10/03 22:11:40 lv Exp $ # # This eclass should contain general toolchain-related functions that are # expected to not change, or change much. @@ -1077,12 +1077,9 @@ create_gcc_env_entry() { if [ "$1" == "" ] ; then gcc_envd_file="${D}${gcc_envd_base}" gcc_specs_file="${LIBPATH}/specs" - elif [ "$1" == "vanilla" ] ; then - gcc_envd_file="${D}${gcc_envd_base}-vanilla" - gcc_specs_file="${LIBPATH}/vanilla.specs" - elif [ "$1" == "hardened" ] ; then - gcc_envd_file="${D}${gcc_envd_base}-hardened" - gcc_specs_file="${LIBPATH}/hardened.specs" + else + gcc_envd_file="${D}${gcc_envd_base}-$1" + gcc_specs_file="${LIBPATH}/$1.specs" fi echo "PATH=\"${BINPATH}\"" > ${gcc_envd_file} |