/[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.180 Revision 1.181
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.180 2012/11/11 07:00:01 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.181 2012/11/11 20:00:57 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
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 602 case ${x} in
603 -Wl*,) 603 -Wl,*)
604 x=${x#-Wl,} 604 x=${x#-Wl,}
605 set -- "$@" ${x//,/ } 605 set -- "$@" ${x//,/ }
606 ;; 606 ;;
607 *) # Assume it's a compiler driver flag, so throw it away #441808 607 *) # Assume it's a compiler driver flag, so throw it away #441808
608 ;; 608 ;;

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

  ViewVC Help
Powered by ViewVC 1.1.20