/[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.146 Revision 1.147
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 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.146 2010/02/17 18:20:49 ssuominen Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.147 2010/04/02 02:50:29 abcd 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
664 CXXFLAGS="${CXXFLAGS/-mcpu=${x}/-mcpu=v8 -mtune=${x}}" 664 CXXFLAGS="${CXXFLAGS/-mcpu=${x}/-mcpu=v8 -mtune=${x}}"
665 done 665 done
666 fi 666 fi
667 667
668 export CFLAGS CXXFLAGS 668 export CFLAGS CXXFLAGS
669}
670
671# @FUNCTION: append-libs
672# @USAGE: <libs>
673# @DESCRIPTION:
674# Add extra <libs> to the current LIBS.
675append-libs() {
676 [[ -z $* ]] && return 0
677 local flag
678 for flag in "$@"; do
679 [[ ${flag} == -l* ]] && flag=${flag#-l}
680 export LIBS="${LIBS} -l${flag}"
681 done
682
683 return 0
669} 684}
670 685
671# @FUNCTION: append-ldflags 686# @FUNCTION: append-ldflags
672# @USAGE: <flags> 687# @USAGE: <flags>
673# @DESCRIPTION: 688# @DESCRIPTION:

Legend:
Removed from v.1.146  
changed lines
  Added in v.1.147

  ViewVC Help
Powered by ViewVC 1.1.20