/[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.122 Revision 1.123
1# Copyright 1999-2008 Gentoo Foundation 1# Copyright 1999-2008 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.122 2008/02/18 18:20:47 swegener Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.123 2008/06/07 16:42:32 flameeyes 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
577# @USAGE: <flags> 577# @USAGE: <flags>
578# @DESCRIPTION: 578# @DESCRIPTION:
579# Add extra <flags> to the current LDFLAGS. 579# Add extra <flags> to the current LDFLAGS.
580append-ldflags() { 580append-ldflags() {
581 [[ -z $* ]] && return 0 581 [[ -z $* ]] && return 0
582 local flag
583 for flag in "$@"; do
584 [[ ${flag} == -l* ]] && \
585 ewarn "Appending a library link instruction (${flag}); libraries to link to should not be passed through LDFLAGS"
586 done
587
582 export LDFLAGS="${LDFLAGS} $*" 588 export LDFLAGS="${LDFLAGS} $*"
583 return 0 589 return 0
584} 590}
585 591
586# @FUNCTION: filter-ldflags 592# @FUNCTION: filter-ldflags

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

  ViewVC Help
Powered by ViewVC 1.1.20