/[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.199 Revision 1.200
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.199 2014/06/14 07:34:59 rhill Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.200 2014/07/04 08:01:51 ulm 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
614 if [[ -z "${flag// }" ]]; then 614 if [[ -z "${flag// }" ]]; then
615 eqawarn "Appending an empty argument to LIBS is invalid! Skipping." 615 eqawarn "Appending an empty argument to LIBS is invalid! Skipping."
616 continue 616 continue
617 fi 617 fi
618 case $flag in 618 case $flag in
619 -[lL]*) 619 -[lL]*)
620 export LIBS="${LIBS} ${flag}" 620 export LIBS="${LIBS} ${flag}"
621 ;; 621 ;;
622 -*) 622 -*)
623 eqawarn "Appending non-library to LIBS (${flag}); Other linker flags should be passed via LDFLAGS" 623 eqawarn "Appending non-library to LIBS (${flag}); Other linker flags should be passed via LDFLAGS"
624 export LIBS="${LIBS} ${flag}" 624 export LIBS="${LIBS} ${flag}"
625 ;; 625 ;;
626 *) 626 *)
627 export LIBS="${LIBS} -l${flag}" 627 export LIBS="${LIBS} -l${flag}"

Legend:
Removed from v.1.199  
changed lines
  Added in v.1.200

  ViewVC Help
Powered by ViewVC 1.1.20