/[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.155 Revision 1.156
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 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.155 2011/08/17 18:20:59 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.156 2011/10/08 18:37:30 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
656 _filter-var LDFLAGS "$@" 656 _filter-var LDFLAGS "$@"
657 return 0 657 return 0
658} 658}
659 659
660# @FUNCTION: raw-ldflags 660# @FUNCTION: raw-ldflags
661# @USAGE: <flags> 661# @USAGE: [flags]
662# @DESCRIPTION: 662# @DESCRIPTION:
663# Turn C style ldflags (-Wl,-foo) into straight ldflags - the results 663# Turn C style ldflags (-Wl,-foo) into straight ldflags - the results
664# are suitable for passing directly to 'ld'; note LDFLAGS is usually passed 664# are suitable for passing directly to 'ld'; note LDFLAGS is usually passed
665# to gcc where it needs the '-Wl,'. 665# to gcc where it needs the '-Wl,'.
666#
667# If no flags are specified, then default to ${LDFLAGS}.
666raw-ldflags() { 668raw-ldflags() {
667 local x input="$@" 669 local x input="$@"
668 [[ -z ${input} ]] && input=${LDFLAGS} 670 [[ -z ${input} ]] && input=${LDFLAGS}
669 set -- 671 set --
670 for x in ${input} ; do 672 for x in ${input} ; do

Legend:
Removed from v.1.155  
changed lines
  Added in v.1.156

  ViewVC Help
Powered by ViewVC 1.1.20