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 | d8b3631d205488b666cb82d743c288d3ae817b85 (patch) | |
tree | b1451e99002c774a1e7d72aa46d5dc33be22220c /eclass | |
parent | Fixed header. (Manifest recommit) (diff) | |
download | gentoo-2-d8b3631d205488b666cb82d743c288d3ae817b85.tar.gz gentoo-2-d8b3631d205488b666cb82d743c288d3ae817b85.tar.bz2 gentoo-2-d8b3631d205488b666cb82d743c288d3ae817b85.zip |
made env script function more flexible just in case we get more than just 3 specs files at some point in the future...
Diffstat (limited to 'eclass')
-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} |