/[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.176 Revision 1.177
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.176 2012/06/18 06:45:28 grobian Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.177 2012/06/23 22:21:50 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
195append-ldflags() { 195append-ldflags() {
196 [[ $# -eq 0 ]] && return 0 196 [[ $# -eq 0 ]] && return 0
197 local flag 197 local flag
198 for flag in "$@"; do 198 for flag in "$@"; do
199 [[ ${flag} == -l* ]] && \ 199 [[ ${flag} == -l* ]] && \
200 ewarn "Appending a library link instruction (${flag}); libraries to link to should not be passed through LDFLAGS" 200 eqawarn "Appending a library link instruction (${flag}); libraries to link to should not be passed through LDFLAGS"
201 done 201 done
202 202
203 export LDFLAGS="${LDFLAGS} $*" 203 export LDFLAGS="${LDFLAGS} $*"
204 return 0 204 return 0
205} 205}

Legend:
Removed from v.1.176  
changed lines
  Added in v.1.177

  ViewVC Help
Powered by ViewVC 1.1.20