/[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.177 Revision 1.178
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 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.177 2012/06/23 22:21:50 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.178 2012/10/30 20:20:37 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
368 fi 368 fi
369 done 369 done
370 done 370 done
371 371
372 # In case we filtered out all optimization flags fallback to -O2 372 # In case we filtered out all optimization flags fallback to -O2
373 if _is_flagq ${var} "-O*" && ! _is_flagq new "-O*" ; then 373 if _is_flagq ${var} "-O*" && ! (_is_flagq new "-O*" || _is_flagq new -O) ; then
374 new+=( -O2 ) 374 new+=( -O2 )
375 fi 375 fi
376 376
377 eval export ${var}=\""${new[*]}"\" 377 eval export ${var}=\""${new[*]}"\"
378 done 378 done

Legend:
Removed from v.1.177  
changed lines
  Added in v.1.178

  ViewVC Help
Powered by ViewVC 1.1.20