/[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.122 Revision 1.123
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 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.122 2013/09/30 01:34:25 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.123 2013/10/12 21:31:01 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
648 dodir /${libdir} 648 dodir /${libdir}
649 fi 649 fi
650 650
651 # OUTPUT_FORMAT gives hints to the linker as to what binary format 651 # OUTPUT_FORMAT gives hints to the linker as to what binary format
652 # is referenced ... makes multilib saner 652 # is referenced ... makes multilib saner
653 local flags=( ${CFLAGS} ${LDFLAGS} -Wl,--verbose )
654 if $(tc-getLD) --version | grep -q 'GNU gold' ; then
655 # If they're using gold, manually invoke the old bfd. #487696
656 local d="${T}/bfd-linker"
657 mkdir -p "${d}"
658 ln -sf $(which ${CHOST}-ld.bfd) "${d}"/ld
659 flags+=( -B"${d}" )
660 fi
653 output_format=$($(tc-getCC) ${CFLAGS} ${LDFLAGS} -Wl,--verbose 2>&1 | sed -n 's/^OUTPUT_FORMAT("\([^"]*\)",.*/\1/p') 661 output_format=$($(tc-getCC) "${flags[@]}" 2>&1 | sed -n 's/^OUTPUT_FORMAT("\([^"]*\)",.*/\1/p')
654 [[ -n ${output_format} ]] && output_format="OUTPUT_FORMAT ( ${output_format} )" 662 [[ -n ${output_format} ]] && output_format="OUTPUT_FORMAT ( ${output_format} )"
655 663
656 for lib in "$@" ; do 664 for lib in "$@" ; do
657 local tlib 665 local tlib
658 if ${auto} ; then 666 if ${auto} ; then

Legend:
Removed from v.1.122  
changed lines
  Added in v.1.123

  ViewVC Help
Powered by ViewVC 1.1.20