/[gentoo-x86]/eclass/toolchain-funcs.eclass
Gentoo

Diff of /eclass/toolchain-funcs.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.75 Revision 1.77
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2007 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.75 2008/01/02 01:01:03 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.77 2008/06/01 08:56:56 aballier Exp $
4 4
5# @ECLASS: toolchain-funcs.eclass 5# @ECLASS: toolchain-funcs.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Toolchain Ninjas <toolchain@gentoo.org> 7# Toolchain Ninjas <toolchain@gentoo.org>
8# @BLURB: functions to query common info about the toolchain 8# @BLURB: functions to query common info about the toolchain
171 cris*) echo cris;; 171 cris*) echo cris;;
172 hppa*) ninj parisc hppa;; 172 hppa*) ninj parisc hppa;;
173 i?86*) 173 i?86*)
174 # Starting with linux-2.6.24, the 'x86_64' and 'i386' 174 # Starting with linux-2.6.24, the 'x86_64' and 'i386'
175 # trees have been unified into 'x86'. 175 # trees have been unified into 'x86'.
176 # FreeBSD still uses i386
176 if [[ ${type} == "kern" ]] && [[ $(KV_to_int ${KV}) -lt $(KV_to_int 2.6.24) ]] ; then 177 if [[ ${type} == "kern" ]] && [[ $(KV_to_int ${KV}) -lt $(KV_to_int 2.6.24) || ${host} == *freebsd* ]] ; then
177 echo i386 178 echo i386
178 else 179 else
179 echo x86 180 echo x86
180 fi 181 fi
181 ;; 182 ;;
295} 296}
296 297
297# Returns the installation directory - internal toolchain 298# Returns the installation directory - internal toolchain
298# function for use by _gcc-specs-exists (for flag-o-matic). 299# function for use by _gcc-specs-exists (for flag-o-matic).
299_gcc-install-dir() { 300_gcc-install-dir() {
300 echo "$($(tc-getCC) -print-search-dirs 2> /dev/null |\ 301 echo "$(LC_ALL=C $(tc-getCC) -print-search-dirs 2> /dev/null |\
301 awk '$1=="install:" {print $2}')" 302 awk '$1=="install:" {print $2}')"
302} 303}
303# Returns true if the indicated specs file exists - internal toolchain 304# Returns true if the indicated specs file exists - internal toolchain
304# function for use by flag-o-matic. 305# function for use by flag-o-matic.
305_gcc-specs-exists() { 306_gcc-specs-exists() {

Legend:
Removed from v.1.75  
changed lines
  Added in v.1.77

  ViewVC Help
Powered by ViewVC 1.1.20