/[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.197 Revision 1.198
1# Copyright 1999-2014 Gentoo Foundation 1# Copyright 1999-2014 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.197 2014/02/02 22:26:13 tommy Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.198 2014/06/14 05:14:55 robbat2 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
609# options, they are given a -l prefix automatically. 609# options, they are given a -l prefix automatically.
610append-libs() { 610append-libs() {
611 [[ $# -eq 0 ]] && return 0 611 [[ $# -eq 0 ]] && return 0
612 local flag 612 local flag
613 for flag in "$@"; do 613 for flag in "$@"; do
614 if [[ -z "${flag// }" ]]; then
615 eqawarn "Appending an empty argument to LIBS is invalid! Skipping."
616 continue
617 fi
614 case $flag in 618 case $flag in
615 -[lL]*) 619 -[lL]*)
616 export LIBS="${LIBS} ${flag}" 620 export LIBS="${LIBS} ${flag}"
617 ;; 621 ;;
618 -*) 622 -*)

Legend:
Removed from v.1.197  
changed lines
  Added in v.1.198

  ViewVC Help
Powered by ViewVC 1.1.20