/[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.192 Revision 1.193
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 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.192 2013/11/02 03:20:37 dirtyepic Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.193 2013/12/27 21:27:38 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
603append-libs() { 603append-libs() {
604 [[ $# -eq 0 ]] && return 0 604 [[ $# -eq 0 ]] && return 0
605 local flag 605 local flag
606 for flag in "$@"; do 606 for flag in "$@"; do
607 [[ ${flag} == -l* ]] && flag=${flag#-l} 607 [[ ${flag} == -l* ]] && flag=${flag#-l}
608 if [[ ${flag} == -* ]]; then
609 eqawarn "Appending non-library to LIBS (${flag}); Other linker flags should be passed via LDFLAGS"
610 export LIBS="${LIBS} ${flag}"
611 else
608 export LIBS="${LIBS} -l${flag}" 612 export LIBS="${LIBS} -l${flag}"
613 fi
609 done 614 done
610 615
611 return 0 616 return 0
612} 617}
613 618

Legend:
Removed from v.1.192  
changed lines
  Added in v.1.193

  ViewVC Help
Powered by ViewVC 1.1.20