/[gentoo-x86]/eclass/flag-o-matic.eclass
Gentoo

Diff of /eclass/flag-o-matic.eclass

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

Revision 1.179 Revision 1.180
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/flag-o-matic.eclass,v 1.179 2012/10/30 20:51:44 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.180 2012/11/11 07:00:01 vapier Exp $
4 4
5# @ECLASS: flag-o-matic.eclass 5# @ECLASS: flag-o-matic.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# toolchain@gentoo.org 7# toolchain@gentoo.org
8# @BLURB: common functions to manipulate and query toolchain flags 8# @BLURB: common functions to manipulate and query toolchain flags
597raw-ldflags() { 597raw-ldflags() {
598 local x input="$@" 598 local x input="$@"
599 [[ -z ${input} ]] && input=${LDFLAGS} 599 [[ -z ${input} ]] && input=${LDFLAGS}
600 set -- 600 set --
601 for x in ${input} ; do 601 for x in ${input} ; do
602 case ${x} in
603 -Wl*,)
602 x=${x#-Wl,} 604 x=${x#-Wl,}
603 set -- "$@" ${x//,/ } 605 set -- "$@" ${x//,/ }
606 ;;
607 *) # Assume it's a compiler driver flag, so throw it away #441808
608 ;;
609 esac
604 done 610 done
605 echo "$@" 611 echo "$@"
606} 612}
607 613
608# @FUNCTION: no-as-needed 614# @FUNCTION: no-as-needed

Legend:
Removed from v.1.179  
changed lines
  Added in v.1.180

  ViewVC Help
Powered by ViewVC 1.1.20