summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-01-16 20:03:32 +0000
committerMike Frysinger <vapier@gentoo.org>2012-01-16 20:03:32 +0000
commit0c6febd2073313e3ad76dde071c28019bccb572d (patch)
tree3a0df9ea08e91f3b811b1683d51a431a924d3467 /eclass/flag-o-matic.eclass
parentStable for AMD64, wrt bug #397903 (diff)
downloadhistorical-0c6febd2073313e3ad76dde071c28019bccb572d.tar.gz
historical-0c6febd2073313e3ad76dde071c28019bccb572d.tar.bz2
historical-0c6febd2073313e3ad76dde071c28019bccb572d.zip
quote single flag arg to test-flag-PROG since we are only testing one flag, and we want to handle any weirdness in that flag (such as spaces) #399055
Diffstat (limited to 'eclass/flag-o-matic.eclass')
-rw-r--r--eclass/flag-o-matic.eclass8
1 files changed, 4 insertions, 4 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index 30bca775efcd..0ae992ff3383 100644
--- a/eclass/flag-o-matic.eclass
+++ b/eclass/flag-o-matic.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.167 2012/01/14 09:10:54 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.168 2012/01/16 20:03:32 vapier Exp $
# @ECLASS: flag-o-matic.eclass
# @MAINTAINER:
@@ -347,13 +347,13 @@ strip-flags() {
test-flag-PROG() {
local comp=$1
- local flags="$2"
+ local flag=$2
- [[ -z ${comp} || -z ${flags} ]] && return 1
+ [[ -z ${comp} || -z ${flag} ]] && return 1
# use -c so we can test the assembler as well
local PROG=$(tc-get${comp})
- ${PROG} ${flags} -c -o /dev/null -xc /dev/null \
+ ${PROG} "${flag}" -c -o /dev/null -xc /dev/null \
> /dev/null 2>&1
}