/[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.136 Revision 1.137
1# Copyright 1999-2015 Gentoo Foundation 1# Copyright 1999-2015 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.136 2015/03/31 04:27:29 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.137 2015/04/13 05:38:17 vapier 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
350 fi 350 fi
351 351
352 ewarn "Forcing usage of the BFD linker instead of GOLD" 352 ewarn "Forcing usage of the BFD linker instead of GOLD"
353 353
354 # Set up LD to point directly to bfd if it's available. 354 # Set up LD to point directly to bfd if it's available.
355 # We need to extract the first word in case there are flags appended
356 # to its value (like multilib). #545218
355 local bfd_ld="$(tc-getLD "$@").bfd" 357 local ld=$(tc-getLD "$@")
358 local bfd_ld="${ld%% *}.bfd"
356 local path_ld=$(which "${bfd_ld}" 2>/dev/null) 359 local path_ld=$(which "${bfd_ld}" 2>/dev/null)
357 [[ -e ${path_ld} ]] && export LD=${bfd_ld} 360 [[ -e ${path_ld} ]] && export LD=${bfd_ld}
358 361
359 # Set up LDFLAGS to select gold based on the gcc version. 362 # Set up LDFLAGS to select gold based on the gcc version.
360 local major=$(gcc-major-version "$@") 363 local major=$(gcc-major-version "$@")

Legend:
Removed from v.1.136  
changed lines
  Added in v.1.137

  ViewVC Help
Powered by ViewVC 1.1.20