/[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.189 Revision 1.190
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.189 2013/09/30 06:39:56 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.190 2013/10/12 19:50:02 vapier 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
390 # In case we filtered out all optimization flags fallback to -O2 390 # In case we filtered out all optimization flags fallback to -O2
391 if _is_flagq ${var} "-O*" && ! _is_flagq new "-O*" ; then 391 if _is_flagq ${var} "-O*" && ! _is_flagq new "-O*" ; then
392 new+=( -O2 ) 392 new+=( -O2 )
393 fi 393 fi
394 394
395 if [[ ${!var} != "${new[*]}" ]] ; then
396 einfo "strip-flags: ${var}: changed '${!var}' to '${new[*]}'"
397 fi
395 eval export ${var}=\""${new[*]}"\" 398 eval export ${var}=\""${new[*]}"\"
396 done 399 done
397 400
398 set +f # re-enable pathname expansion 401 set +f # re-enable pathname expansion
399 402

Legend:
Removed from v.1.189  
changed lines
  Added in v.1.190

  ViewVC Help
Powered by ViewVC 1.1.20