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
commitdf272f900042b1dcdb77f364110ff51db66b6670 (patch)
treec1b6f8118330f0c4fe9195aaf6d2be59f3078104 /eclass/flag-o-matic.eclass
parentStable for AMD64, wrt bug #397903 (diff)
downloadgentoo-2-df272f900042b1dcdb77f364110ff51db66b6670.tar.gz
gentoo-2-df272f900042b1dcdb77f364110ff51db66b6670.tar.bz2
gentoo-2-df272f900042b1dcdb77f364110ff51db66b6670.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
}